Class QCacheProviderLocalMemory
Cache provider that uses a local in memory array.
The lifespan of this cache is the request, unless 'KeepInSession' option is used, in which case the lifespan
is the session.
-
QAbstractCacheProvider
-
QCacheProviderLocalMemory
Methods summary
public
|
#
__construct( array $objOptionsArray )
Parameters
- $objOptionsArray
configuration options for this cache provider. Currently supported options are
'KeepInSession': if set to true the cache will be kept in session
|
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
|