Removes stored in cache value under given key
Returns value stored in cache by a given key
Purges all keys from cache by a given wildcard mask
Stores in cache given value under given key. If TTL is specified, cached value will expire in a given number of milliseconds. If NX argument set to true will create key:value in cache only if it does not exist yet. Given value could be any JSON-compatible object and will be serialized automatically.
Optional
ttl: numberStatic
destroySafely destroys redis connection
Class RedisCache. Implements cache engine over redis.