Psr6
2 years ago
Cache.php
4 years ago
CacheProvider.php
4 years ago
ClearableCache.php
4 years ago
FlushableCache.php
4 years ago
MultiDeleteCache.php
4 years ago
MultiGetCache.php
4 years ago
MultiOperationCache.php
4 years ago
MultiPutCache.php
4 years ago
index.php
3 years ago
Cache.php
18 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Doctrine\Common\Cache; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | interface Cache |
| 5 | { |
| 6 | public const STATS_HITS = 'hits'; |
| 7 | public const STATS_MISSES = 'misses'; |
| 8 | public const STATS_UPTIME = 'uptime'; |
| 9 | public const STATS_MEMORY_USAGE = 'memory_usage'; |
| 10 | public const STATS_MEMORY_AVAILABLE = 'memory_available'; |
| 11 | public const STATS_MEMORY_AVAILIABLE = 'memory_available'; |
| 12 | public function fetch($id); |
| 13 | public function contains($id); |
| 14 | public function save($id, $data, $lifeTime = 0); |
| 15 | public function delete($id); |
| 16 | public function getStats(); |
| 17 | } |
| 18 |