Horde_Memcache::set PHP Method

set() public method

Set the value of a key.
See also: Memcache::set()
public set ( string $key, string $var, $expire ) : boolean
$key string The key.
$var string The data to store.
return boolean True on success.
    public function set($key, $var, $expire = 0)
    {
        return $this->_set($key, @serialize($var), $expire);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  */
 public function set($key, $data, $lifetime = 0)
 {
     $key = $this->_params['prefix'] . $key;
     if ($this->_memcache->set($key . '_e', time(), $lifetime) !== false) {
         $this->_memcache->set($key, $data, $lifetime);
     }
 }
All Usage Examples Of Horde_Memcache::set