$cacheEngine $cacheEngine :\Psr\SimpleCache\CacheInterface Type\Psr\SimpleCache\CacheInterface—the cache engine
__construct() __construct(\Psr\SimpleCache\CacheInterface $cacheEngine) the constructor Parameters \Psr\SimpleCache\CacheInterface $cacheEngine
has() has(string $key): boolean method to check if cache has entry for given key Parameters string $key Returnsboolean
get() get(string $key): mixed|null method to get cache entry Parameters string $key Returnsmixed|null
set() set(string $key,mixed $value,integer $time = 300,array $options = array()): mixed|void method to set cache entry Parameters string $key mixed $value integer $time array $options deprecated Returnsmixed|void
delete() delete(string $key,array $options = array()): mixed|void method to delete cache entry Parameters string $key array $options deprecated Returnsmixed|void
slug() slug(string $key): string replaces chars forbidden in PSR-16 cache-keys Parameters string $key key to slug Returnsstring —$key slugged key