|
| | __construct ($db) |
| | Class Constructor.
|
| |
| | connect (&$err) |
| | Lazy connection.
|
| |
| | flushAll ($debug=false) |
| | Flushes all of the stored memcache data.
|
| |
| | flushCache ($filename, $debug=false) |
| | Flushes the contents of a specified query.
|
| |
| | isLibMemcached () |
| | Return true if the current library is Memcached.
|
| |
| | readCache ($filename, &$err, $secs2cache, $rsClass) |
| | Reads a cached query from the server.
|
| |
| | writeCache ($filename, $contents, $debug, $secs2cache) |
| | Writes a cached query to the server.
|
| |
|
|
bool | $createdir = false |
| | Prevents parent class calling non-existant function.
|
| |
| const | MCLIB = 1 |
| | An integer index into the libraries.
|
| |
|
const | MCLIBD = 2 |
| |
◆ __construct()
| ADODB_Cache_MemCache::__construct |
( |
| $db | ) |
|
Class Constructor.
- Parameters
-
◆ connect()
| ADODB_Cache_MemCache::connect |
( |
& | $err | ) |
|
Lazy connection.
The connection only occurs on CacheExecute call.
- Parameters
-
- Return values
-
| bool | success of connecting to a server |
◆ flushAll()
| ADODB_Cache_MemCache::flushAll |
( |
| $debug = false | ) |
|
Flushes all of the stored memcache data.
- Parameters
-
- Return values
-
| bool | The response from the memcache server |
◆ flushCache()
| ADODB_Cache_MemCache::flushCache |
( |
| $filename, |
|
|
| $debug = false ) |
Flushes the contents of a specified query.
- Parameters
-
| string | $filename | The MD5 of the query to flush |
| bool | $debug | |
- Return values
-
| bool | The response from the memcache server |
◆ isLibMemcached()
| ADODB_Cache_MemCache::isLibMemcached |
( |
| ) |
|
Return true if the current library is Memcached.
- Return values
-
◆ readCache()
| ADODB_Cache_MemCache::readCache |
( |
| $filename, |
|
|
& | $err, |
|
|
| $secs2cache, |
|
|
| $rsClass ) |
Reads a cached query from the server.
- Parameters
-
| string | $filename | The MD5 of the query to read |
| string | $err | The query results |
| int | $secs2cache | |
| object | $rsClass | UNUSED |
- Return values
-
| object|bool | record or false. |
@noinspection PhpUnusedParameterInspection
◆ writeCache()
| ADODB_Cache_MemCache::writeCache |
( |
| $filename, |
|
|
| $contents, |
|
|
| $debug, |
|
|
| $secs2cache ) |
Writes a cached query to the server.
- Parameters
-
| string | $filename | The MD5 of the query to cache |
| string | $contents | The query results |
| bool | $debug | |
| int | $secs2cache | |
- Return values
-
| bool | true or false. true if successful save |
◆ MCLIB
| const ADODB_Cache_MemCache::MCLIB = 1 |
An integer index into the libraries.
- See also
- $libraries
The documentation for this class was generated from the following file:
- lib/adodb/adodb-memcache.lib.inc.php