phpDocumentor Cotonti
[ class tree: Cotonti ] [ index: Cotonti ] [ all elements ]

Class: Temporary_cache_driver

Source Location: /cache.php

Class Temporary_cache_driver

Class Overview

Temporary cache driver is fast in-memory cache. It usually works faster and provides automatic garbage collection, but it doesn't save data if PHP stops whatsoever.

Use it for individual frequently modified variables.

Located in /cache.php [line 200]

Dynamic_cache_driver
   |
   --Temporary_cache_driver
Author(s):
API Tags:
Abstract:  

Methods

[ Top ]
Descendants
Child Class Description
Memcache_driver Memcache distributed persistent cache driver implementation. Give it a higher priority if a cluster of webservers is used and Memcached is running via TCP/IP between them.
APC_driver Accelerated PHP Cache driver implementation. This should be used as default cacher on APC-enabled hosts.
eAccelerator_driver eAccelerator driver implementation. This should be used as default cacher on hosts providing eAccelerator.
Xcache_driver XCache variable cache driver. It should be used on hosts that use XCache for PHP acceleration and variable cache.

[ Top ]
Inherited Properties, Constants, and Methods
Inherited Properties Inherited Methods Inherited Constants

Inherited From Dynamic_cache_driver

Dynamic_cache_driver::store()
Stores data as object image in cache

[ Top ]
Method Summary
void   dec()   Decrements counter value
array   get_info()   Returns information about memory usage if available.
int   get_ini_size()   Gets a size limit from php.ini
void   inc()   Increments counter value

[ Top ]
Methods
dec  [line 224]

  void dec( string $id, [string $realm = COT_DEFAULT_REALM], [int $value = 1]  )

Decrements counter value

Parameters:
string   $id:  Counter identifier
string   $realm:  Realm name
int   $value:  Increment value return int Result value

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]
get_info  [line 238]

  array get_info( )

Returns information about memory usage if available.

Possible keys: available, occupied, max. If the driver cannot provide a value, it sets it to -1.


API Tags:
Return:  Associative array containing information
Abstract:  
Access:  public


Redefined in descendants as:

[ Top ]
get_ini_size  [line 245]

  int get_ini_size( string $name  )

Gets a size limit from php.ini

Parameters:
string   $name:  INI setting name

API Tags:
Return:  Number of bytes
Access:  protected


[ Top ]
inc  [line 209]

  void inc( string $id, [string $realm = COT_DEFAULT_REALM], [int $value = 1]  )

Increments counter value

Parameters:
string   $id:  Counter identifier
string   $realm:  Realm name
int   $value:  Increment value return int Result value

API Tags:
Access:  public


Redefined in descendants as:

[ Top ]

Documentation generated on Fri, 19 Mar 2010 17:45:22 +0000 by phpDocumentor 1.4.3