src/sb/Cache/Hash.php
public function store($key, $data, $lifetime = 0)
    {

        if ($lifetime != 0) {
            $lifetime = \time() + $lifetime;
        }

        $data = array($lifetime, $data);

        $this->hash[$key] = $data;

        if ($key != $this->catalog_key) {
            $this->catalogKeyAdd($key, $lifetime);
        }

        return true;
    }
public function store($key, $data, $lifetime = 0)
    {

        if ($lifetime != 0) {
            $lifetime = \time() + $lifetime;
        }

        $data = array($lifetime, $data);

        $this->hash[$key] = $data;

        if ($key != $this->catalog_key) {
            $this->catalogKeyAdd($key, $lifetime);
        }

        return true;
    }
public function store ( $ key , $ data , $ lifetime = 0 ) { if ( $ lifetime != 0 ) { $ lifetime = \ time ( ) + $ lifetime ; } $ data = array ( $ lifetime , $ data ) ; $ this -> hash [ $ key ] = $ data ; if ( $ key != $ this -> catalog_key ) { $ this -> catalogKeyAdd ( $ key , $ lifetime ) ; } return true ; }
Store the cache data in memcache
Store the cache data in memcache