# media-cloud-sync/1.2.10/includes/sdk/s3/Aws/Psr16CacheAdapter.php

Media Cloud Sync, version 1.2.10. 27 lines.

- Page: https://pluginprobe.com/plugins/media-cloud-sync/1.2.10/code/includes/sdk/s3/Aws/Psr16CacheAdapter.php
- Raw: https://pluginprobe.com/plugins/media-cloud-sync/1.2.10/raw/includes/sdk/s3/Aws/Psr16CacheAdapter.php
- Modified: 2024-10-27T10:40:38+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/media-cloud-sync/1.2.10/code/includes/sdk/s3/Aws/Psr16CacheAdapter.php#L10-L20`.

```php
<?php

namespace Dudlewebs\WPMCS\s3\Aws;

use Dudlewebs\WPMCS\s3\Psr\SimpleCache\CacheInterface as SimpleCacheInterface;
class Psr16CacheAdapter implements CacheInterface
{
    /** @var SimpleCacheInterface */
    private $cache;
    public function __construct(SimpleCacheInterface $cache)
    {
        $this->cache = $cache;
    }
    public function get($key)
    {
        return $this->cache->get($key);
    }
    public function set($key, $value, $ttl = 0)
    {
        $this->cache->set($key, $value, $ttl);
    }
    public function remove($key)
    {
        $this->cache->delete($key);
    }
}

```
