sfProcessCache stores content in memory if you run a PHP accelerator.
Method Summary
-
string
cacher()
Gets the cache engine name or false if no PHP accelerator is enabled.
-
boolean
clear()
Clears the cache.
-
mixed
get($key)
Gets a value in the cache for the specified key.
-
string
getPrefix()
Gets the prefix to use for all key name.
-
boolean
has($key)
Returns true if a given key exists in the cache, false otherwise.
-
boolean
set($key, $value, $lifeTime)
Sets a value in the cache for the specified key.
Method Details
-
Gets the cache engine name or false if no PHP accelerator is enabled.
returns The cache engine name
-
Clears the cache.
returns true if ok, false otherwise
-
Gets a value in the cache for the specified key.
returns The content associated with the key or null if the key does not exist
-
Gets the prefix to use for all key name.
returns The prefix string
-
Returns true if a given key exists in the cache, false otherwise.
returns true if the key exists, false otherwise
-
(boolean) set ($key, $value, $lifeTime)
Browse code
| $key |
The key name
|
| $value |
The content to put in cache
|
| $lifeTime |
The life time to keep the content in the cache in seconds
|
Sets a value in the cache for the specified key.
returns true if ok
|