Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
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. | |
unlock ($storageFile) | |
Public Attributes | |
const | MAX_LOCK_RETRIES = 10 |
Google_Cache_File::__construct | ( | Google_Client | $client | ) |
Reimplemented from Google_Cache_Abstract.
Google_Cache_File::delete | ( | $key | ) |
Removes the key/data pair for the given $key.
String | $key |
Reimplemented from Google_Cache_Abstract.
Google_Cache_File::get | ( | $key, | |
$expiration = false ) |
Retrieves the data for the given key, or false if they key is unknown or expired.
String | $key | The key who's data to retrieve |
boolean | int | $expiration | Expiration time in seconds |
Reimplemented from Google_Cache_Abstract.
Google_Cache_File::set | ( | $key, | |
$value ) |
Store the key => $value set.
The $value is serialized by this function so can be of any type
string | $key | Key of the data |
string | $value | data |
Reimplemented from Google_Cache_Abstract.