✏️ 正在编辑: PsrCacheAdapter.php
路径:
/srv/systems_dir/yuppiecred/vendor/aws/aws-sdk-php/src/PsrCacheAdapter.php
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
<?php namespace Aws; use Psr\Cache\CacheItemPoolInterface; class PsrCacheAdapter implements CacheInterface { /** @var CacheItemPoolInterface */ private $pool; public function __construct(CacheItemPoolInterface $pool) { $this->pool = $pool; } public function get($key) { $item = $this->pool->getItem($key); return $item->isHit() ? $item->get() : null; } public function set($key, $value, $ttl = 0) { $item = $this->pool->getItem($key); $item->set($value); if ($ttl > 0) { $item->expiresAfter($ttl); } $this->pool->save($item); } public function remove($key) { $this->pool->deleteItem($key); } }
💾 保存文件
← 返回文件管理器