GoogleGAL_Cache_Abstract

Abstract storage class.

Defined (1)

The class is defined in the following location(s).

/core/Google/Cache/Abstract.php  
  1. abstract class GoogleGAL_Cache_Abstract 
  2.  
  3. abstract public function __construct(GoogleGAL_Client $client); 
  4.  
  5. /** 
  6. * Retrieves the data for the given key, or false if they 
  7. * key is unknown or expired 
  8. * @param String $key The key who's data to retrieve 
  9. * @param boolean|int $expiration Expiration time in seconds 
  10. */ 
  11. abstract public function get($key, $expiration = false); 
  12.  
  13. /** 
  14. * Store the key => $value set. The $value is serialized 
  15. * by this function so can be of any type 
  16. * @param string $key Key of the data 
  17. * @param string $value data 
  18. */ 
  19. abstract public function set($key, $value); 
  20.  
  21. /** 
  22. * Removes the key/data pair for the given $key 
  23. * @param String $key 
  24. */ 
  25. abstract public function delete($key);