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

Public Member Functions

 __construct ($servers)
 
 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 ()
 

Additional Inherited Members

- Data Fields inherited from Cache
const DEFAULT_EXPIRATION = 12 * 60 * 60
 
- Protected Attributes inherited from Cache
array $deferred_items = []
 

Detailed Description

Cache implementation using memcached.

Author
Marcus Lunzenauer mlunz.nosp@m.ena@.nosp@m.uos.d.nosp@m.e
Since
5.0

Constructor & Destructor Documentation

◆ __construct()

__construct (   $servers)

Member Function Documentation

◆ expire()

expire (   $arg)

Expire item from the cache.

Example:

expires foo

$cache->expire('foo');

Parameters
string$arga single key.
Returns
void

◆ flush()

flush ( )

Expire all items from the cache.

◆ getConfig()

static getConfig ( )
static

Return the Vue component name and props that handle configuration.

See also
Cache::getConfig()
Returns
array

◆ getDisplayName()

static getDisplayName ( )
static
Returns
string A translateable display name for this cache class.

◆ getItem()

getItem ( string  $key)

◆ getStats()

getStats ( )

Return statistics.

::getStats()

Returns
array|array[]

◆ hasItem()

hasItem ( string  $key)

◆ save()

save ( CacheItemInterface  $item)

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