This operation fails (returns false) if the key already exists in cache.
If the operation succeeds, true will be returned.
public add ( string $key, mixed $value, integer $expire ) : boolean | ||
$key | string | |
$value | mixed | |
$expire | integer | Time when item falls out of the cache: 0 = permanent (doesn't expires); under 2592000 (30 days) = relative time, in seconds from now; over 2592000 = absolute time, unix timestamp |
return | boolean |