Skip to content

Commit 50eb077

Browse files
authored
Merge pull request #131 from bearsunday/redis
Change RedisAdapter
2 parents 0ca8d54 + 801e41d commit 50eb077

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"psr/cache": "^1.0 || ^2.0 || ^3.0",
1919
"ray/aop": "^2.10",
2020
"ray/di": "^2.13.1",
21-
"ray/psr-cache-module": "^1.1.2",
21+
"ray/psr-cache-module": "^1.3.2",
2222
"symfony/cache": "^5.3 || ^6.0",
2323
"symfony/cache-contracts": "^2.4 || ^3.0"
2424
},

src/StorageRedisModule.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
use Psr\Cache\CacheItemPoolInterface;
99
use Ray\Di\AbstractModule;
1010
use Ray\PsrCacheModule\Annotation\CacheNamespace;
11-
use Ray\PsrCacheModule\Annotation\RedisInstance;
1211
use Ray\PsrCacheModule\Psr6RedisModule;
13-
use Symfony\Component\Cache\Adapter\RedisAdapter;
12+
use Ray\PsrCacheModule\RedisAdapter;
1413

1514
/**
1615
* Provides ResourceStorageInterface and derived bindings
@@ -40,7 +39,7 @@ protected function configure(): void
4039
{
4140
$this->install(new Psr6RedisModule($this->server));
4241
$this->bind(CacheItemPoolInterface::class)->annotatedWith(EtagPool::class)->toConstructor(RedisAdapter::class, [
43-
'redis' => RedisInstance::class,
42+
'redisProvider' => 'redis',
4443
'namespace' => CacheNamespace::class,
4544
]);
4645
}

0 commit comments

Comments
 (0)