public function set($key, $value, $ttl, $time)
    {
        $this->data[$key] = array(
            self::CACHE_PARAM_VALUE => $value,
            self::CACHE_PARAM_CREATED => $time,
            self::CACHE_PARAM_TTL => $ttl
        );

        return $this;
    }
public function set($key, $value, $ttl, $time)
    {
        $this->data[$key] = array(
            self::CACHE_PARAM_VALUE => $value,
            self::CACHE_PARAM_CREATED => $time,
            self::CACHE_PARAM_TTL => $ttl
        );

        return $this;
    }
public function set ( $ key , $ value , $ ttl , $ time ) { $ this -> data [ $ key ] = array ( self :: CACHE_PARAM_VALUE => $ value , self :: CACHE_PARAM_CREATED => $ time , self :: CACHE_PARAM_TTL => $ ttl ) ; return $ this ; }
Sets the cache data

@param string $key
@param mixed $value
@param integer $ttl Time to live in seconds
@param integer $time Current timestamp
@return \Krystal\Cache\FileEngine\ArrayCache
Sets the cache data