Stud.IP  6.1
MemoryCache Class Reference
Inheritance diagram for MemoryCache:
Cache

Public Member Functions

 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

array $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 php memory implementation of the StudipCache interface.

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.0

Member Function Documentation

◆ expire()

expire (   $arg)

Expires just a single key.

Parameters
string$argthe key

◆ flush()

flush ( )

Expire all items from the cache.

◆ getConfig()

static getConfig ( )
static

◆ getDisplayName()

static getDisplayName ( )
static

◆ getItem()

getItem ( string  $key)

◆ getStats()

getStats ( )

◆ hasItem()

hasItem ( string  $key)

◆ save()

save ( CacheItemInterface  $item)

Field Documentation

◆ $memory_cache

array $memory_cache = []
protected

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