Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
QueryCache Class Reference

Ubiquity\cache\database$QueryCache This class is part of Ubiquity. More...

+ Inheritance diagram for QueryCache:

Public Member Functions

 store ($tableName, $condition, $result)
 Caches the given data with the given key (tableName+md5(condition)).
 
 delete ($tableName, $condition)
 Deletes the entry corresponding to $condition apply to $table.
 
- Public Member Functions inherited from DbCache
 __construct ($cacheSystem=ArrayCache::class, $config=[])
 
 fetch ($tableName, $condition)
 Fetches data stored for the given condition in table.
 
 clear ($matches='')
 
 remove ($key)
 
 setActive ($value=true)
 
 storeDeferred ()
 

Additional Inherited Members

- Static Public Attributes inherited from DbCache
static $active = false
 
- Protected Member Functions inherited from DbCache
 getKey ($tableName, $condition)
 
 getMemoryCache ($key)
 
- Protected Attributes inherited from DbCache
 $cache
 
 $memoryCache
 
 $storeDeferred
 
 $toStore = [ ]
 

Detailed Description

Ubiquity\cache\database$QueryCache 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.2

Definition at line 13 of file QueryCache.php.

Member Function Documentation

◆ delete()

delete (   $tableName,
  $condition 
)

Deletes the entry corresponding to $condition apply to $table.

Parameters
string$tableName
string$condition
Returns
boolean true if the entry is deleted

Reimplemented from DbCache.

Definition at line 25 of file QueryCache.php.

◆ store()

store (   $tableName,
  $condition,
  $result 
)

Caches the given data with the given key (tableName+md5(condition)).

Parameters
string$tableName
string$condition
array$resultthe datas to store

Reimplemented from DbCache.

Definition at line 15 of file QueryCache.php.


The documentation for this class was generated from the following file: