◆ clear()
Delete all keys from the cache
- Returns
- boolean True if the cache was successfully cleared, false otherwise @access public
Reimplemented from XoopsCacheEngine.
◆ connect()
connect |
( |
|
$host, |
|
|
|
$port = 11211 |
|
) |
| |
Connects to a server in connection pool
- Parameters
-
string | $host | host ip address or name |
integer | $port | Server port |
- Returns
- boolean True if memcache server was connected @access public
◆ delete()
Delete a key from the cache
- Parameters
-
string | $key | Identifier for the data |
- Returns
- boolean True if the value was successfully deleted, false if it didn't exist or couldn't be removed @access public
Reimplemented from XoopsCacheEngine.
◆ init()
init |
( |
|
$settings = array() | ) |
|
Initialize the Cache Engine
Called automatically by the cache frontend To reinitialize the settings call Cache::engine('EngineName', [optional] settings = array());
- Parameters
-
array | $settings | array of setting for the engine |
- Returns
- boolean True if the engine has been successfully initialized, false if not @access public
Reimplemented from XoopsCacheEngine.
◆ read()
Read a key from the cache
- Parameters
-
string | $key | Identifier for the data |
- Returns
- mixed The cached data, or false if the data doesn't exist, has expired, or if there was an error fetching it @access public
Reimplemented from XoopsCacheEngine.
◆ write()
write |
( |
|
$key, |
|
|
|
$value, |
|
|
|
$duration = null |
|
) |
| |
Write data for key into cache
- Parameters
-
string | $key | Identifier for the data |
mixed | $value | Data to be cached |
integer | $duration | How long to cache the data, in seconds |
- Returns
- boolean True if the data was successfully cached, false on failure @access public
Reimplemented from XoopsCacheEngine.
◆ $settings
The documentation for this class was generated from the following file: