protected function createCacheValue($key, $value, $ttl = null)
    {
        $created = time();

        return array(
            'created' => $created,
            'key' => $key,
            'value' => $value,
            'ttl' => $ttl,
            'expires' => ($ttl) ? $created + $ttl : null
        );
    }
protected function createCacheValue($key, $value, $ttl = null)
    {
        $created = time();

        return array(
            'created' => $created,
            'key' => $key,
            'value' => $value,
            'ttl' => $ttl,
            'expires' => ($ttl) ? $created + $ttl : null
        );
    }
protected function createCacheValue ( $ key , $ value , $ ttl = null ) { $ created = time ( ) ; return array ( 'created' => $ created , 'key' => $ key , 'value' => $ value , 'ttl' => $ ttl , 'expires' => ( $ ttl ) ? $ created + $ ttl : null ) ; }
Creates a cache value object.

@param string $key The cache key the file is stored under.
@param mixed $value The data being stored
@param int|null $ttl The timestamp of when the data will expire. If null, the data won't expire.
@return array Cache value
Creates a cache value object .