public function put($key, $value, $duration, $localOnly = false)
    {
        $cacheKey = $this->cacheKey($key);
        if($this->keepLocalCache)
            $this->localCache[$cacheKey] = $value;
        if(!$localOnly)
            $this->cacheStore->put($cacheKey, $value, $duration);
    }
public function put($key, $value, $duration, $localOnly = false)
    {
        $cacheKey = $this->cacheKey($key);
        if($this->keepLocalCache)
            $this->localCache[$cacheKey] = $value;
        if(!$localOnly)
            $this->cacheStore->put($cacheKey, $value, $duration);
    }
public function put ( $ key , $ value , $ duration , $ localOnly = false ) { $ cacheKey = $ this -> cacheKey ( $ key ) ; if ( $ this -> keepLocalCache ) $ this -> localCache [ $ cacheKey ] = $ value ; if ( ! $ localOnly ) $ this -> cacheStore -> put ( $ cacheKey , $ value , $ duration ) ; }
Stores the value specified with the cacheKey given.

@param string $cacheKey The cache key
@param mixed  $value    The value to store

@access public
@return void
Stores the value specified with the cacheKey given .