ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
CacheInterface.php
Go to the documentation of this file.
1 <?php
2 
3 namespace Psr\SimpleCache;
4 
5 interface CacheInterface
6 {
18  public function get($key, $default = null);
19 
34  public function set($key, $value, $ttl = null);
35 
46  public function delete($key);
47 
53  public function clear();
54 
67  public function getMultiple($keys, $default = null);
68 
83  public function setMultiple($values, $ttl = null);
84 
96  public function deleteMultiple($keys);
97 
113  public function has($key);
114 }
has($key)
Determines whether an item is present in the cache.
deleteMultiple($keys)
Deletes multiple cache items in a single operation.
$keys
$values
clear()
Wipes clean the entire cache&#39;s keys.
setMultiple($values, $ttl=null)
Persists a set of key => value pairs in the cache, with an optional TTL.
$default
Definition: build.php:20
getMultiple($keys, $default=null)
Obtains multiple cache items by their unique keys.
$key
Definition: croninfo.php:18