Inherits Cache.

Public Member Functions | |
| Cache_SHM () | |
| set ($key, $var, $expire=0) | |
| & | get ($key) |
| delete ($key) | |
| flush () | |
| gc () | |
| stats () | |
| _get_dict () | |
| _set_dict ($dict) | |
| _hash_key ($key) | |
Public Attributes | |
| $shmkey | |
| $shmid | |
| $memsize = CACHE_SHM_SIZE | |
PRONTO WEB FRAMEWORK Copyright (C) 2006, Judd Vinet
Description: SHM (Shared Memory) cache driver. This driver is useful for times when you don't have a more robust caching facility, such as eAccelerator or MemCache. It should be a last resort, however.
Definition at line 13 of file shm.php.
| Cache_SHM::_get_dict | ( | ) |
| Cache_SHM::_hash_key | ( | $ | key | ) |
Definition at line 130 of file shm.php.
References _get_dict(), and _set_dict().
| Cache_SHM::_set_dict | ( | $ | dict | ) |
Definition at line 125 of file shm.php.
Referenced by _hash_key(), gc(), and set().
| Cache_SHM::Cache_SHM | ( | ) |
| Cache_SHM::delete | ( | $ | key | ) |
| Cache_SHM::flush | ( | ) |
| Cache_SHM::gc | ( | ) |
Expire old entries.
Reimplemented from Cache.
Definition at line 89 of file shm.php.
References _get_dict(), and _set_dict().
| & Cache_SHM::get | ( | $ | key | ) |
| Cache_SHM::set | ( | $ | key, | |
| $ | var, | |||
| $ | expire = 0 | |||
| ) |
| string | $key Unique key name to store value under | |
| mixed | $var Variable to store | |
| int | $expire Expiration time (from now) in seconds. Use zero to never expire. |
Reimplemented from Cache.
Definition at line 36 of file shm.php.
References _get_dict(), _hash_key(), and _set_dict().
| Cache_SHM::stats | ( | ) |
Return some usage statistics.
Reimplemented from Cache.
Definition at line 104 of file shm.php.
References _get_dict().
1.6.1