App Engine PHP SDK  v1 rev.445
The PHP runtime is available as an experimental Preview feature.
Public Member Functions | List of all members
google\appengine\ext\session\MemcacheContainer Class Reference

Public Member Functions

 __construct ()
 
 close ()
 
 get ($key)
 
 set ($key, $value, $expire)
 
 delete ($key)
 

Detailed Description

Remove direct interaction with Memcache object for ease of mocking in tests.

Constructor & Destructor Documentation

google\appengine\ext\session\MemcacheContainer::__construct ( )

Initialises a Memcache instance

Member Function Documentation

google\appengine\ext\session\MemcacheContainer::close ( )

Closes the Memcache instance.

Returns
bool true if successful, false otherwise
google\appengine\ext\session\MemcacheContainer::delete (   $key)

Removes the key value pair, keyed with the input variable.

Parameters
string$keyInput key to remove key value pair
Returns
bool true if successful, false otherwise
google\appengine\ext\session\MemcacheContainer::get (   $key)

Finds the value associated with input key, from Memcache.

Parameters
string$keyInput key from which to find value
Returns
string value associated with input key
google\appengine\ext\session\MemcacheContainer::set (   $key,
  $value,
  $expire 
)

Inserts a key value pair, with expiry time, into Memcache.

Parameters
string$keyInput key to associate with the value
string$valueInput value to be stored
int$expireTime until the pair can be garbage collected
Returns
bool true if successful, false otherwise

The documentation for this class was generated from the following file: