Google_Cache

Abstract storage class.

Defined (1)

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

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