File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Jaspaul \LaravelRollout \Drivers ;
4
4
5
+ use Illuminate \Cache \Repository ;
5
6
use Illuminate \Contracts \Cache \Store ;
6
7
use Opensoft \Rollout \Storage \StorageInterface ;
7
8
8
9
class Cache implements StorageInterface
9
10
{
10
11
/**
11
- * An instance of a cache store that we can store our keys in.
12
+ * An instance of a cache repository that we can store our keys in.
12
13
*
13
- * @var \Illuminate\Contracts\ Cache\Store ;
14
+ * @var \Illuminate\Cache\Repository ;
14
15
*/
15
16
protected $ store ;
16
17
@@ -32,7 +33,7 @@ class Cache implements StorageInterface
32
33
*/
33
34
public function __construct (Store $ store , string $ prefix = 'rollout ' )
34
35
{
35
- $ this ->store = $ store ;
36
+ $ this ->store = new Repository ( $ store) ;
36
37
$ this ->prefix = $ prefix ;
37
38
}
38
39
@@ -50,7 +51,7 @@ public function __construct(Store $store, string $prefix = 'rollout')
50
51
public function get ($ key )
51
52
{
52
53
$ key = sprintf ('%s.%s ' , $ this ->prefix , $ key );
53
- return $ this ->store ->get ($ key );
54
+ return $ this ->store ->get ($ key, null );
54
55
}
55
56
56
57
/**
You can’t perform that action at this time.
0 commit comments