stevenbuehner/temporary-cache-service

Small service that provides the ability to temporarily cache data

1.1 2016-08-27 17:53 UTC

This package is auto-updated.

Last update: 2024-12-13 02:16:23 UTC


README

A small Service to temporarily cache data.

It offers the functions:

/**
 * @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);