public function FileSystemCacheHandler::set in Auth0 Single Sign On 8.2
Parameters
string $key:
mixed $value:
Overrides CacheHandler::set
1 call to FileSystemCacheHandler::set()
- FileSystemCacheHandler::delete in vendor/
auth0/ auth0-php/ src/ Helpers/ Cache/ FileSystemCacheHandler.php
File
- vendor/
auth0/ auth0-php/ src/ Helpers/ Cache/ FileSystemCacheHandler.php, line 73
Class
Namespace
Auth0\SDK\Helpers\CacheCode
public function set($key, $value) {
$key = md5($key);
$value = base64_encode(serialize($value));
$file = fopen($this->tmp_dir . $key, 'w+');
flock($file, LOCK_EX);
fwrite($file, $value, strlen($value));
flock($file, LOCK_UN);
fclose($file);
}