Stud.IP  6.0
Wrapper Class Reference
Inheritance diagram for Wrapper:
Cache

Public Member Functions

 __construct (Cache $actual_cache)
 
 expire ($arg)
 
 flush ()
 
 getStats ()
 
 getItem (string $key)
 
 hasItem (string $key)
 
 save (CacheItemInterface $item)
 
- Public Member Functions inherited from Cache
 getStats ()
 
 expire ($arg)
 
 flush ()
 
 getItem (string $key)
 
 hasItem (string $key)
 
 read ($arg)
 
 write ($name, $content, $expires=self::DEFAULT_EXPIRATION)
 
 getExpiration (CacheItemInterface $item)
 
 getItems (array $keys=[])
 
 clear ()
 
 deleteItem ($key)
 
 deleteItems (array $keys)
 
 saveDeferred (CacheItemInterface $item)
 
 commit ()
 

Static Public Member Functions

static getDisplayName ()
 
static getConfig ()
 
- Static Public Member Functions inherited from Cache
static getDisplayName ()
 
static getConfig ()
 

Protected Attributes

Cache $actual_cache
 
MemoryCache $memory_cache
 
- Protected Attributes inherited from Cache
array $deferred_items = []
 

Additional Inherited Members

- Data Fields inherited from Cache
const DEFAULT_EXPIRATION = 12 * 60 * 60
 

Detailed Description

The cache wrapper wraps a memory cache around another cache. This should reduce the accesses to the actual cache.

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version
Since
Stud.IP 5.4

Constructor & Destructor Documentation

◆ __construct()

__construct ( Cache  $actual_cache)

Member Function Documentation

◆ expire()

expire (   $arg)

◆ flush()

flush ( )

◆ getConfig()

static getConfig ( )
static

◆ getDisplayName()

static getDisplayName ( )
static

◆ getItem()

getItem ( string  $key)

◆ getStats()

getStats ( )

◆ hasItem()

hasItem ( string  $key)

◆ save()

save ( CacheItemInterface  $item)

Field Documentation

◆ $actual_cache

Cache $actual_cache
protected

◆ $memory_cache

MemoryCache $memory_cache
protected

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