Class MemcachedStorage (namespace Nette\Caching)


Memcached storage.

Object
   |
   --MemcachedStorage

Implements interfaces:

Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Caching/MemcachedStorage.php (line 21)
Public Method Summary
MemcachedStorage
__construct ([$host = 'localhost'], [$port = 11211], [$prefix = ''])
void
clean ($conds)
Removes items from the cache by conditions & garbage collector.
static bool
Checks if Memcached extension is available.
mixed|NULL
read (string $key)
Read from cache.
void
remove (string $key)
Removes item from the cache.
void
write (string $key, mixed $data, $dp)
Writes item into the cache.
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()

Method Details

line 48

__construct

public MemcachedStorage __construct ([$host = 'localhost'], [$port = 11211], [$prefix = ''])

Input
$host
$port
$prefix
Output
MemcachedStorage  

line 145

clean

public void clean ($conds)

Removes items from the cache by conditions & garbage collector.

Implementation of:

Input
$conds conditions
Output
void  

line 41

isAvailable

public static bool isAvailable ()

Checks if Memcached extension is available.

Output
bool  

line 66

read

public mixed|NULL read (string $key)

Read from cache.

Implementation of:

Input
string $key key
Output
mixed|NULL  

line 133

remove

public void remove (string $key)

Removes item from the cache.

Implementation of:

Input
string $key key
Output
void  

line 101

write

public void write (string $key, mixed $data, $dp)

Writes item into the cache.

Implementation of:

Input
string $key key
mixed $data data
$dp dependencies
Output
void