Cachearium\Backend\CacheMemcached::store PHP Method

store() public method

(non-PHPdoc)
See also: Cachearium\Backend\CacheRAM::store()
public store ( $data, CacheKey $k, $lifetime )
$k Cachearium\CacheKey
    public function store($data, CacheKey $k, $lifetime = 0)
    {
        // @codeCoverageIgnoreStart
        if (!$this->enabled) {
            return false;
        }
        // @codeCoverageIgnoreEnd
        $group = $this->hashKey($k);
        $this->log(CacheLogEnum::SAVED, $k);
        $x = $this->memcached->set($group, serialize($data), $lifetime ? $lifetime : $this->lifetime);
        parent::store($data, $k, $lifetime);
        return $x;
    }