MemcacheSessionHandler
class MemcacheSessionHandler implements SessionHandlerInterface (View source)
A session handler interface using the GAE Memcache API.
Constants
SESSION_PREFIX |
|
Methods
Opens the session handler.
Closes the session handler.
Read an element from Memcache with the given ID.
Write an element to Memcache with the given ID and data.
Destroy the data associated with a particular session ID.
Garbage collection method - always returns true as this is handled by the Memcache expire function.
Configure the session handler to use the Memcache API.
Details
at line 48
__construct(MemcacheContainer $memcacheContainer = null)
Constructs the session handler instance.
at line 66
bool
open(string $savePath, string $sessionName)
Opens the session handler.
at line 74
bool
close()
Closes the session handler.
at line 83
string
read(string $id)
Read an element from Memcache with the given ID.
at line 94
bool
write(string $id, string $data)
Write an element to Memcache with the given ID and data.
at line 104
bool
destroy(string $id)
Destroy the data associated with a particular session ID.
at line 115
bool
gc(int $maxlifetime)
Garbage collection method - always returns true as this is handled by the Memcache expire function.
at line 124
static
configure(MemcacheContainer $memcacheContainer = null)
Configure the session handler to use the Memcache API.