Class QMultiLevelCacheProvider
A multi-level Cache provider that's made of multiple cache providers.
Cache hit is checked in the order the cache providers are set
Setting or deleting into the cache sets or deletes it from all the providers
-
QAbstractCacheProvider
-
QMultiLevelCacheProvider
Methods summary
public
|
#
__construct( array $objOptionsArray )
Constructs a Multi-level Cache provider based on the configuration used for each provider
Constructs a Multi-level Cache provider based on the configuration used for each provider
Parameters
- $objOptionsArray
an associative array where each item is an array with two elements specifying
an inner cache provider. The first element of that array is the class name of the cache provider, and the second
one is the options for constructing the provider
|
public
object
|
#
Get( string $strKey )
Get the object that has the given key from the cache
Get the object that has the given key from the cache
Parameters
- $strKey
- the key of the object in the cache
Returns
object
|
public
|
#
Set( string $strKey, object $objValue )
Set the object into the cache with the given key
Set the object into the cache with the given key
Parameters
- $strKey
- the key to use for the object
- $objValue
- the object to put in the cache
|
public
|
#
Delete( string $strKey )
Delete the object that has the given key from the cache
Delete the object that has the given key from the cache
Parameters
- $strKey
- the key of the object in the cache
|
public
|
#
DeleteAll( )
Invalidate all the objects in the cache
Invalidate all the objects in the cache
|