[Top]
Fins
Fins.Cache
Fins.Cache.Cache
|
Method Fins.Cache.Cache()->set()
- Method
set
-
int set(string key, mixed value, int|void timeout, int|void sliding)
- Description
-
add an item in the cache.
- Parameter key
-
the key to identify this cache item by. if an entry identified by key already
exists, we will replace it with this new value.
- Parameter value
-
the value to save in the cache
- Parameter timeout
-
the number of seconds in the future to save the item. If zero, we assume an
infinte lifetime, subject to overall caching strategies.
- Parameter sliding
-
if set, we will keep moving the expiration ahead each time the entry is accessed
via the get() method.
|