Abstract class for database caching Ubiquity\cache\database$DbCache This class is part of Ubiquity.
More...
|
| __construct ($cacheSystem=ArrayCache::class, $config=[]) |
|
| store ($tableName, $condition, $result) |
| Caches the given data with the given key (tableName+md5(condition)).
|
|
| fetch ($tableName, $condition) |
| Fetches data stored for the given condition in table.
|
|
| delete ($tableName, $condition) |
| Deletes the entry corresponding to $condition apply to $table.
|
|
| clear ($matches='') |
|
| remove ($key) |
|
| setActive ($value=true) |
|
| storeDeferred () |
|
Abstract class for database caching Ubiquity\cache\database$DbCache This class is part of Ubiquity.
- Author
- jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
- Version
- 1.0.1
Definition at line 20 of file DbCache.php.
◆ __construct()
__construct |
( |
|
$cacheSystem = ArrayCache::class , |
|
|
|
$config = [ ] |
|
) |
| |
◆ clear()
◆ delete()
delete |
( |
|
$tableName, |
|
|
|
$condition |
|
) |
| |
|
abstract |
Deletes the entry corresponding to $condition apply to $table.
- Parameters
-
string | $tableName | |
string | $condition | |
- Returns
- boolean true if the entry is deleted
Reimplemented in MemoryCache, and QueryCache.
◆ fetch()
fetch |
( |
|
$tableName, |
|
|
|
$condition |
|
) |
| |
Fetches data stored for the given condition in table.
- Parameters
-
string | $tableName | |
string | $condition | |
- Returns
- mixed the cached datas
Reimplemented in MemoryCache.
Definition at line 70 of file DbCache.php.
◆ getKey()
getKey |
( |
|
$tableName, |
|
|
|
$condition |
|
) |
| |
|
protected |
◆ getMemoryCache()
◆ remove()
◆ setActive()
setActive |
( |
|
$value = true | ) |
|
◆ store()
store |
( |
|
$tableName, |
|
|
|
$condition, |
|
|
|
$result |
|
) |
| |
|
abstract |
Caches the given data with the given key (tableName+md5(condition)).
- Parameters
-
string | $tableName | |
string | $condition | |
array | $result | the datas to store |
Reimplemented in MemoryCache, and QueryCache.
◆ storeDeferred()
◆ $active
◆ $cache
◆ $memoryCache
◆ $storeDeferred
◆ $toStore
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity/src/Ubiquity/cache/database/DbCache.php