stevenbuehner/temporary-cache-service

一个小型服务,提供临时缓存数据的能力

1.1 2016-08-27 17:53 UTC

This package is auto-updated.

Last update: 2024-09-13 01:53:12 UTC


README

一个用于临时缓存数据的小型服务。

它提供了以下功能

/**
 * @param bool $key
 */
public function hasCache($key;

/**
 * @param mixed $key
 * @return mixed
 * @throws CacheKeyDoesNotExistException
 */
public function getCache($key);

/**
 * @param mixed $key
 * @param mixed $value
 * @return mixed $value
 */
public function setCache($key, $value);

/**
 * Clears the cache of the given key if it does exist
 * @param mixed $key
 */
public function clearCache($key);