RedisCache
in package
This is the Redis cache class in the LogiCommerce SDK package.
All nedded information to cache on Redis will be pepared and managed on that class
Tags
Table of Contents
getData() | This will return the data associated to the given key | : array<string|int, mixed> |
---|
Methods
getData()
This will return the data associated to the given key
public
static getData(string $key, callable $apiResource, int $ttl) : array<string|int, mixed>
Parameters
- $key : string
-
Key of the cached data you want to get.
- $apiResource : callable
- $ttl : int