protected function storageFormat($key, $data, $ttl)
    {
        $start  = time();
        $expire = $start + $ttl;

        return array('key' => $key, 'value' => $data, 'duration' => $ttl, 'created' => $start, 'expires' => $expire);
    }
protected function storageFormat($key, $data, $ttl)
    {
        $start  = time();
        $expire = $start + $ttl;

        return array('key' => $key, 'value' => $data, 'duration' => $ttl, 'created' => $start, 'expires' => $expire);
    }
protected function storageFormat ( $ key , $ data , $ ttl ) { $ start = time ( ) ; $ expire = $ start + $ ttl ; return array ( 'key' => $ key , 'value' => $ data , 'duration' => $ ttl , 'created' => $ start , 'expires' => $ expire ) ; }
Defines the array that will be used to store data.
Changing this will require updating all functions that also fetch data.

At no point after this function is called should the data be manipulated,
only inserted directly into cache.

@param string $key  Key name
@param string $data Data to store
@param int $ttl  Duration in seconds for data to live in cache

@return array An that will be stored in the cache.
Defines the array that will be used to store data . Changing this will require updating all functions that also fetch data .