Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
Google_Cache_Abstract Class Reference
Inheritance diagram for Google_Cache_Abstract:
Google_Cache_Apc Google_Cache_File Google_Cache_Memcache Google_Cache_Null

Public Member Functions

 __construct (Google_Client $client)
 
 delete ($key)
 Removes the key/data pair for the given $key.
 
 get ($key, $expiration=false)
 Retrieves the data for the given key, or false if they key is unknown or expired.
 
 set ($key, $value)
 Store the key => $value set.
 

Member Function Documentation

◆ delete()

Google_Cache_Abstract::delete ( $key)
abstract

Removes the key/data pair for the given $key.

Parameters
String$key

Reimplemented in Google_Cache_Apc, Google_Cache_File, Google_Cache_Memcache, and Google_Cache_Null.

◆ get()

Google_Cache_Abstract::get ( $key,
$expiration = false )
abstract

Retrieves the data for the given key, or false if they key is unknown or expired.

Parameters
String$keyThe key who's data to retrieve
boolean | int$expirationExpiration time in seconds

Reimplemented in Google_Cache_Apc, Google_Cache_File, Google_Cache_Memcache, and Google_Cache_Null.

◆ set()

Google_Cache_Abstract::set ( $key,
$value )
abstract

Store the key => $value set.

The $value is serialized by this function so can be of any type

Parameters
string$keyKey of the data
string$valuedata

Reimplemented in Google_Cache_Apc, Google_Cache_File, Google_Cache_Memcache, and Google_Cache_Null.


The documentation for this class was generated from the following file: