ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
Assetic\Cache\CacheInterface Interface Reference

Interface for a cache backend. More...

+ Inheritance diagram for Assetic\Cache\CacheInterface:
+ Collaboration diagram for Assetic\Cache\CacheInterface:

Public Member Functions

 has ($key)
 Checks if the cache has a value for a key. More...
 
 get ($key)
 Returns the value for a key. More...
 
 set ($key, $value)
 Sets a value in the cache. More...
 
 remove ($key)
 Removes a value from the cache. More...
 

Detailed Description

Interface for a cache backend.

Author
Kris Wallsmith kris..nosp@m.wall.nosp@m.smith.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Definition at line 19 of file CacheInterface.php.

Member Function Documentation

◆ get()

Assetic\Cache\CacheInterface::get (   $key)

Returns the value for a key.

Parameters
string$keyA unique key
Returns
string|null The value in the cache

Implemented in Assetic\Cache\ExpiringCache, Assetic\Cache\ApcCache, Assetic\Cache\ArrayCache, and Assetic\Cache\FilesystemCache.

◆ has()

Assetic\Cache\CacheInterface::has (   $key)

Checks if the cache has a value for a key.

Parameters
string$keyA unique key
Returns
Boolean Whether the cache has a value for this key

Implemented in Assetic\Cache\ExpiringCache, Assetic\Cache\FilesystemCache, Assetic\Cache\ApcCache, and Assetic\Cache\ArrayCache.

◆ remove()

Assetic\Cache\CacheInterface::remove (   $key)

Removes a value from the cache.

Parameters
string$keyA unique key

Implemented in Assetic\Cache\ApcCache, Assetic\Cache\FilesystemCache, Assetic\Cache\ExpiringCache, and Assetic\Cache\ArrayCache.

◆ set()

Assetic\Cache\CacheInterface::set (   $key,
  $value 
)

Sets a value in the cache.

Parameters
string$keyA unique key
string$valueThe value to cache

Implemented in Assetic\Cache\ExpiringCache, Assetic\Cache\ApcCache, Assetic\Cache\ArrayCache, and Assetic\Cache\FilesystemCache.


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