RedisStorageDriver
in package
implements
StorageDriverInterface
Table of Contents
Interfaces
Constants
- KEY_PREFIX = 'omniconvert'
- TTL = 31536000
Properties
Methods
- __construct() : mixed
- get() : mixed
- Retrieve stored data
- save() : bool
- Store data
- buildKey() : string
Constants
KEY_PREFIX
public
mixed
KEY_PREFIX
= 'omniconvert'
TTL
public
mixed
TTL
= 31536000
Properties
$connection
private
RedisConnection
$connection
Methods
__construct()
public
__construct(RedisConnection $connection) : mixed
Parameters
- $connection : RedisConnection
get()
Retrieve stored data
public
get(string $key) : mixed
Parameters
- $key : string
-
Data key
Return values
mixed —Stored data
save()
Store data
public
save(string $key, mixed $data) : bool
Parameters
- $key : string
-
Data key
- $data : mixed
-
Data to be stored
Return values
bool —True if storage was successful
buildKey()
private
buildKey(string $key) : string
Parameters
- $key : string