Manage the contents of the hmac_cache table.
More...
Manage the contents of the hmac_cache table.
- Since
- 4.0
Definition at line 15 of file HMACCacheTable.php.
Elgg\Database\HMACCacheTable::__construct |
( |
protected Database |
$database | ) |
|
Elgg\Database\HMACCacheTable::__destruct |
( |
| ) |
|
Elgg\Database\HMACCacheTable::deleteHMAC |
( |
string |
$hmac | ) |
|
Elgg\Database\HMACCacheTable::getTTL |
( |
| ) |
|
Get the configured Time-To-Live of the HMAC keys.
- Returns
- int
Definition at line 76 of file HMACCacheTable.php.
Elgg\Database\HMACCacheTable::loadHMAC |
( |
string |
$hmac | ) |
|
Load a HMAC key from the database.
- Parameters
-
- Returns
- string|null
Definition at line 104 of file HMACCacheTable.php.
Elgg\Database\HMACCacheTable::setTTL |
( |
int |
$ttl = 0 | ) |
|
Set the Time-To-Live of HMAC keys.
- Parameters
-
int | $ttl | the max TTL of the HMAC keys in seconds (-1 is endless) |
- Returns
- void
- Exceptions
-
Definition at line 63 of file HMACCacheTable.php.
Elgg\Database\HMACCacheTable::storeHMAC |
( |
string |
$hmac | ) |
|
Store a HMAC key for later use.
- Parameters
-
- Returns
- int|false
Definition at line 87 of file HMACCacheTable.php.
int Elgg\Database\HMACCacheTable::$ttl = 90000 |
|
protected |
const Elgg\Database\HMACCacheTable::TABLE_NAME = 'hmac_cache' |
The documentation for this class was generated from the following file: