add()
add(string $key, mixed $value) : boolean
Write data for key into a cache engine if it doesn't exist already.
Parameters
string | $key | Identifier for the data. |
mixed | $value | Data to be cached - anything except a resource. |
Returns
boolean —True if the data was successfully cached, false on failure. Or if the key existed already.