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

This class is responsible for storing values with PhpFastCache. More...

+ Inheritance diagram for PhpFastCacheDriver:

Public Member Functions

 __construct ($root, $postfix="", $cacheParams=[])
 Initializes the cache-provider.
 
 exists ($key)
 Check if annotation-data for the key has been stored.
 
 store ($key, $content, $tag=null)
 Caches the given data with the given key.
 
 fetch ($key)
 Fetches data stored for the given key.
 
 file_get_contents ($key)
 return data stored for the given key.
 
 getTimestamp ($key)
 Returns the timestamp of the last cache update for the given key.
 
 remove ($key)
 
 clear ()
 Clears all cache entries.
 
 getCacheFiles ($type)
 
 clearCache ($type)
 
 getCacheInfo ()
 
 getEntryKey ($key)
 
- Public Member Functions inherited from AbstractDataCache
 __construct ($root, $postfix='')
 
 init ()
 
 expired ($key, $duration)
 
 getRoot ()
 
 setRoot ($_root)
 

Protected Member Functions

 getRealKey ($key)
 
 getCacheEntries ($type)
 

Private Attributes

 $cacheInstance
 

Additional Inherited Members

- Protected Attributes inherited from AbstractDataCache
 $_root
 
 $postfix
 

Detailed Description

This class is responsible for storing values with PhpFastCache.

Ubiquity\cache\system$PhpFastCacheDriver This class is part of Ubiquity

Author
jcheron myadd.nosp@m.ress.nosp@m.mail@.nosp@m.gmai.nosp@m.l.com
Version
1.1.0

Definition at line 18 of file PhpFastCacheDriver.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $root,
  $postfix = "",
  $cacheParams = [ ] 
)

Initializes the cache-provider.

Definition at line 28 of file PhpFastCacheDriver.php.

Member Function Documentation

◆ clear()

clear ( )

Clears all cache entries.

Reimplemented from AbstractDataCache.

Definition at line 96 of file PhpFastCacheDriver.php.

◆ clearCache()

clearCache (   $type)

Reimplemented from AbstractDataCache.

Definition at line 117 of file PhpFastCacheDriver.php.

◆ exists()

exists (   $key)

Check if annotation-data for the key has been stored.

Parameters
string$keycache key
Returns
boolean true if data with the given key has been stored; otherwise false

Reimplemented from AbstractDataCache.

Definition at line 44 of file PhpFastCacheDriver.php.

◆ fetch()

fetch (   $key)

Fetches data stored for the given key.

Parameters
string$keycache key
Returns
mixed the cached data

Reimplemented from AbstractDataCache.

Definition at line 68 of file PhpFastCacheDriver.php.

◆ file_get_contents()

file_get_contents (   $key)

return data stored for the given key.

Parameters
string$keycache key
Returns
mixed the cached data

Reimplemented from AbstractDataCache.

Definition at line 78 of file PhpFastCacheDriver.php.

◆ getCacheEntries()

getCacheEntries (   $type)
protected

Definition at line 100 of file PhpFastCacheDriver.php.

◆ getCacheFiles()

getCacheFiles (   $type)

Reimplemented from AbstractDataCache.

Definition at line 104 of file PhpFastCacheDriver.php.

◆ getCacheInfo()

getCacheInfo ( )

Reimplemented from AbstractDataCache.

Definition at line 121 of file PhpFastCacheDriver.php.

◆ getEntryKey()

getEntryKey (   $key)

Reimplemented from AbstractDataCache.

Definition at line 125 of file PhpFastCacheDriver.php.

◆ getRealKey()

getRealKey (   $key)
protected

Definition at line 58 of file PhpFastCacheDriver.php.

◆ getTimestamp()

getTimestamp (   $key)

Returns the timestamp of the last cache update for the given key.

Parameters
string$keycache key
Returns
int unix timestamp

Reimplemented from AbstractDataCache.

Definition at line 88 of file PhpFastCacheDriver.php.

◆ remove()

remove (   $key)
Parameters
string$key

Reimplemented from AbstractDataCache.

Definition at line 92 of file PhpFastCacheDriver.php.

◆ store()

store (   $key,
  $code,
  $tag = null 
)

Caches the given data with the given key.

Parameters
string$keycache key
mixed$codethe source-code to be cached
string$tagthe item tag
Exceptions
CacheException

Reimplemented from AbstractDataCache.

Definition at line 48 of file PhpFastCacheDriver.php.

Field Documentation

◆ $cacheInstance

$cacheInstance
private

Definition at line 23 of file PhpFastCacheDriver.php.


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