Class MAbstractCachableDatastore
Defines and provides basic functionality for caching a datastore.
Basically the cached datastore is a combination between a efficient
datastore which can be used as cache and an slower datastore
(e.g. a directory datastore or a remote datastore).
Actually cache is invalidated after one day.
- webfilesframework\core\datasystem\file\format\MWebfile
- webfilesframework\core\datastore\MAbstractDatastore
- webfilesframework\core\datastore\MAbstractCachableDatastore
Direct known subclasses
webfilesframework\core\datastore\types\directory\MDirectoryDatastore, webfilesframework\core\datastore\types\googlecalendar\MGoogleCalendarDatastore
Abstract
Namespace: webfilesframework\core\datastore
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datastore/MAbstractCachableDatastore.php
Namespace: webfilesframework\core\datastore
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datastore/MAbstractCachableDatastore.php
public
|
#
setCachingDatastore(
sets the datastore used for caching data from the original datastore. |
public
|
|
public
|
|
public
|
|
public
mixed
|
#
isCacheActual( )
Define a criteria which indicates the actual datastore with cache is not outdated. |
integer |
ONE_DAY_IN_SECONDS
|
#
86400
|
protected
|
$cachingDatastore
$cachingDatastore * |
|
protected
|
$latestCachingTime
|
$m_iId,
$m_iTime
|