CacheInterface¶
CacheInterface
is DALMP interface to be use with the DALMP\Cache class.
The common methods are:
Method | Description |
---|---|
Delete($key) | Delete item from the server. |
Flush() | Flush all existing items at the server. |
Get($key) | Retrieve item from the server. |
Set($key, $value, $ttl = 0) | Store data at the server. |
Stats() | Get statistics of the server. |
X() | Return the cache object. |
All the cache backends must implement this interface in order to properly work with DALMP.
__construct¶
The construct for each cache backend maybe be different and it is used for defining specific options like the host, port, path, etc.
See also
Thanks Navicat for supporting Open Source projects.
A great amount of time has been spent creating, crafting and maintaining this software, please consider donating.
Donating helps ensure continued support, development and availability.
comments powered by Disqus