@@ -13,7 +13,7 @@ class Cache implements StorageInterface
13
13
*
14
14
* @var \Illuminate\Cache\Repository;
15
15
*/
16
- protected $ store ;
16
+ protected $ repository ;
17
17
18
18
/**
19
19
* The prefix for the cache key.
@@ -23,17 +23,17 @@ class Cache implements StorageInterface
23
23
protected $ prefix ;
24
24
25
25
/**
26
- * Configures our cache driver with an instance of the cache store and a key
27
- * prefix.
26
+ * Configures our cache driver with an instance of the cache repository and
27
+ * a key prefix.
28
28
*
29
- * @param \Illuminate\Contracts\ Cache\Store $store
30
- * An instance of the cache store .
29
+ * @param \Illuminate\Cache\Repository $repository
30
+ * An instance of the cache repository .
31
31
* @param string $prefix
32
32
* A prefix for the cache keys.
33
33
*/
34
- public function __construct (Store $ store , string $ prefix = 'rollout ' )
34
+ public function __construct (Repository $ repository , string $ prefix = 'rollout ' )
35
35
{
36
- $ this ->store = new Repository ( $ store ) ;
36
+ $ this ->repository = $ repository ;
37
37
$ this ->prefix = $ prefix ;
38
38
}
39
39
@@ -64,7 +64,7 @@ private function prefixKey($key) : string
64
64
*/
65
65
public function get ($ key )
66
66
{
67
- return $ this ->store ->get ($ this ->prefixKey ($ key ), null );
67
+ return $ this ->repository ->get ($ this ->prefixKey ($ key ), null );
68
68
}
69
69
70
70
/**
@@ -80,7 +80,7 @@ public function get($key)
80
80
*/
81
81
public function set ($ key , $ value )
82
82
{
83
- $ this ->store ->forever ($ this ->prefixKey ($ key ), $ value );
83
+ $ this ->repository ->forever ($ this ->prefixKey ($ key ), $ value );
84
84
}
85
85
86
86
/**
@@ -94,6 +94,6 @@ public function set($key, $value)
94
94
*/
95
95
public function remove ($ key )
96
96
{
97
- $ this ->store ->forget ($ this ->prefixKey ($ key ));
97
+ $ this ->repository ->forget ($ this ->prefixKey ($ key ));
98
98
}
99
99
}
0 commit comments