File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Use Redis as a cache, implementing the [react/cache interface](https://github.co
13
13
To install via [ Composer] ( http://getcomposer.org/ ) , use the command below, it will automatically detect the latest version and bind it with ` ^ ` .
14
14
15
15
```
16
- composer require wyrihaximus/react-cache-redis
16
+ composer require wyrihaximus/react-cache-redis
17
17
```
18
18
19
19
# Usage
@@ -25,16 +25,15 @@ use Clue\React\Redis\Client;
25
25
use Clue\React\Redis\Factory;
26
26
use WyriHaximus\React\Cache\Redis;
27
27
28
- (new Factory())->createClient()->then(function (Client $client) {
29
- $cache = new Redis($client, 'react:cache:your:key:prefix:');
30
- });
28
+ $client = (new Factory())->createLazyClient();
29
+ $cache = new Redis($client, 'react:cache:your:key:prefix:');
31
30
```
32
31
33
32
# License
34
33
35
34
The MIT License (MIT)
36
35
37
- Copyright (c) 2024 Cees-Jan Kiewiet
36
+ Copyright (c) 2025 Cees-Jan Kiewiet
38
37
39
38
Permission is hereby granted, free of charge, to any person obtaining a copy
40
39
of this software and associated documentation files (the "Software"), to deal
You can’t perform that action at this time.
0 commit comments