stevenbuehner/temporary-cache-service

Small service that provides the ability to temporarily cache data

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/stevenbuehner/temporary-cache-service

1.1 2016-08-27 17:53 UTC

This package is auto-updated.

Last update: 2025-09-13 04:01:39 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);