protected addValue ( string $key, mixed $value, integer $duration ) : boolean | ||
$key | string | the key identifying the value to be cached |
$value | mixed | the value to be cached |
$duration | integer | the number of seconds in which the cached value will expire. 0 means never expire. |
return | boolean | true if the value is successfully stored into cache, false otherwise |