create()
create(integer|string $key, mixed $data, string $namespace, integer $expire) : boolean
Adds data to the cache, if the cache key doesn't already exist.
Parameters
integer|string | $key | The cache key to use for retrieval later. |
mixed | $data | The data to add to the cache. |
string | $namespace | Optional. Where the cache contents are namespaced. |
integer | $expire | Optional. When the cache data should expire, in seconds. Default: 3600 seconds = 1 hour / 60 minutes. |
Returns
boolean —False if cache key already exists, true on success.