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.
◆ __construct()
      
        
          | Elgg\Database\HMACCacheTable::__construct | ( | protected Database | $database | ) |  | 
      
 
 
◆ __destruct()
      
        
          | Elgg\Database\HMACCacheTable::__destruct | ( |  | ) |  | 
      
 
 
◆ deleteHMAC()
      
        
          | Elgg\Database\HMACCacheTable::deleteHMAC | ( | string | $hmac | ) |  | 
      
 
 
◆ getTTL()
      
        
          | Elgg\Database\HMACCacheTable::getTTL | ( |  | ) |  | 
      
 
Get the configured Time-To-Live of the HMAC keys. 
- Returns
- int 
Definition at line 76 of file HMACCacheTable.php.
 
 
◆ loadHMAC()
      
        
          | 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.
 
 
◆ setTTL()
      
        
          | 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.
 
 
◆ storeHMAC()
      
        
          | 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.
 
 
◆ $ttl
  
  | 
        
          | int Elgg\Database\HMACCacheTable::$ttl = 90000 |  | protected | 
 
 
◆ TABLE_NAME
      
        
          | const Elgg\Database\HMACCacheTable::TABLE_NAME = 'hmac_cache' | 
      
 
 
The documentation for this class was generated from the following file: