Class MemcachedStorage (namespace Nette\Caching)
Memcached storage.
Object | --MemcachedStorage
Implements interfaces:
| Constructor Summary | |
|---|---|
| public |
|
| Method Summary | |
|---|---|
| bool |
clean
($conds)
Removes items from the cache by conditions & garbage collector.
|
| static bool |
isAvailable
()
Checks if Memcached extension is available.
|
| mixed|NULL |
read
(string $key)
Read from cache.
|
| bool |
remove
(string $key)
Removes item from the cache.
|
| bool |
write
(string $key, mixed $data, $dp)
Writes item into the cache.
|
| Constant Summary | |||
|---|---|---|---|
| string | META_CONSTS |
'consts' |
line 41 internal cache structure |
| string | META_DATA |
'data' |
line 42 internal cache structure |
| string | META_DELTA |
'delta' |
line 43 internal cache structure |
| string | META_FILES |
'df' |
line 44 internal cache structure |
| Variable Summary | ||||
|---|---|---|---|---|
| protected Memcache | $memcache | |
line 48 |
|
| protected string | $prefix | |
line 51 |
|
| Constructor Details | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 66 __constructpublic __construct ([$host =
|
||||||||||||
| Method Details | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 190 cleanpublic bool clean ($conds) Removes items from the cache by conditions & garbage collector. Implementation of:
|
||||||||||||||||||
|
line 59 isAvailablepublic static bool isAvailable () Checks if Memcached extension is available.
|
||||||||||||||||||
|
line 84 readpublic mixed|NULL read (string $key) Read from cache. Implementation of:
|
||||||||||||||||||
|
line 178 removepublic bool remove (string $key) Removes item from the cache. Implementation of:
|
||||||||||||||||||
|
line 134 writepublic bool write (string $key, mixed $data, $dp) Writes item into the cache. Implementation of:
|
||||||||||||||||||