public function setCache($key, $value, $ttl = 0)
    {
        $cache_function = $this->set_cache_callback;

        return $cache_function($this->cache_type, array('key' => $key, 'value' => $value, 'ttl' => $ttl));
    }
public function setCache($key, $value, $ttl = 0)
    {
        $cache_function = $this->set_cache_callback;

        return $cache_function($this->cache_type, array('key' => $key, 'value' => $value, 'ttl' => $ttl));
    }
public function setCache ( $ key , $ value , $ ttl = 0 ) { $ cache_function = $ this -> set_cache_callback ; return $ cache_function ( $ this -> cache_type , array ( 'key' => $ key , 'value' => $ value , 'ttl' => $ ttl ) ) ; }
Persist data in cache

@param   string  $key
@param   mixed   $value
@param   integer $ttl (number of seconds)

@return  bool
@since   1.0.0
Persist data in cache