for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\RateLimiter\Storage;
use Psr\SimpleCache\CacheInterface;
final class SimpleCacheStorage implements StorageInterface
{
public function __construct(private CacheInterface $cache)
}
public function save(string $key, mixed $value, int $ttl): void
$this->cache->set($key, $value, $ttl);
public function get(string $key, mixed $default = null): mixed
return $this->cache->get($key, $default);