__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Kevinrob\GuzzleCache\Storage;
use Kevinrob\GuzzleCache\CacheEntry;
use League\Flysystem\Filesystem;
use League\Flysystem\FilesystemAdapter;
use League\Flysystem\FilesystemException;
class FlysystemStorage implements CacheStorageInterface
{
/**
* @var Filesystem
*/
protected $filesystem;
public function __construct(FilesystemAdapter $adapter)
{
$this->filesystem = new Filesystem($adapter);
}
/**
* @inheritdoc
*/
public function fetch($key)
{
if ($this->filesystem->fileExists($key)) {
// The file exist, read it!
$data = @unserialize(
$this->filesystem->read($key)
);
if ($data instanceof CacheEntry) {
return $data;
}
}
return;
}
/**
* @inheritdoc
*/
public function save($key, CacheEntry $data)
{
$this->filesystem->write($key, serialize($data));
}
/**
* {@inheritdoc}
*/
public function delete($key)
{
try {
$this->filesystem->delete($key);
} catch (FilesystemException $ex) {
return true;
}
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| CacheStorageInterface.php | File | 512 B | 0777 |
|
| CompressedDoctrineCacheStorage.php | File | 1.46 KB | 0777 |
|
| DoctrineCacheStorage.php | File | 1.43 KB | 0777 |
|
| FlysystemStorage.php | File | 1.19 KB | 0777 |
|
| LaravelCacheStorage.php | File | 1.84 KB | 0777 |
|
| Psr16CacheStorage.php | File | 973 B | 0777 |
|
| Psr6CacheStorage.php | File | 1.94 KB | 0777 |
|
| VolatileRuntimeStorage.php | File | 1019 B | 0777 |
|
| WordPressObjectCacheStorage.php | File | 1.44 KB | 0777 |
|