Cachearium\Backend\CacheAPC::store PHP Method

store() public method

public store ( $data, $base, $id, $sub = LH_DEFAULT_CACHE_ID, $lifetime )
    public function store($data, $base, $id, $sub = LH_DEFAULT_CACHE_ID, $lifetime = 0)
    {
        // @codeCoverageIgnoreStart
        if (!$this->enabled) {
            return false;
        }
        // @codeCoverageIgnoreEnd
        if (!is_string($sub)) {
            $sub = md5(serialize($sub));
        }
        $this->checkValidArgs($base, $id, $sub);
        $key = (new CacheKey($base, $id, $sub))->getHash();
        apc_store($key, $data, $lifetime);
        return true;
    }