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

Public Member Functions

 __construct (Cache $cache, $proxy_these=['expire'])
 
 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
 
array $proxy_these
 
- Protected Attributes inherited from Cache
array $deferred_items = []
 

Additional Inherited Members

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

Detailed Description

Proxies a StudipCache and stores the expire operation in the database. These operations are lateron applied to the cache they should have been applied to in the beginning.

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 3.3

Constructor & Destructor Documentation

◆ __construct()

__construct ( Cache  $cache,
  $proxy_these = ['expire'] 
)
Parameters
Cache$cacheThe actual cache object
mixed$proxy_theseList of operations to proxy (should be an array but a space seperated string is also valid)

Member Function Documentation

◆ expire()

expire (   $arg)

Expires just a single key.

Parameters
string$argThe item's 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

◆ $actual_cache

Cache $actual_cache
protected

◆ $proxy_these

array $proxy_these
protected

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