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 22
33namespace Jaspaul \LaravelRollout \Drivers ;
44
5+ use Illuminate \Cache \Repository ;
56use Illuminate \Contracts \Cache \Store ;
67use Opensoft \Rollout \Storage \StorageInterface ;
78
89class Cache implements StorageInterface
910{
1011 /**
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.
1213 *
13- * @var \Illuminate\Contracts\ Cache\Store ;
14+ * @var \Illuminate\Cache\Repository ;
1415 */
1516 protected $ store ;
1617
@@ -32,7 +33,7 @@ class Cache implements StorageInterface
3233 */
3334 public function __construct (Store $ store , string $ prefix = 'rollout ' )
3435 {
35- $ this ->store = $ store ;
36+ $ this ->store = new Repository ( $ store) ;
3637 $ this ->prefix = $ prefix ;
3738 }
3839
@@ -50,7 +51,7 @@ public function __construct(Store $store, string $prefix = 'rollout')
5051 public function get ($ key )
5152 {
5253 $ key = sprintf ('%s.%s ' , $ this ->prefix , $ key );
53- return $ this ->store ->get ($ key );
54+ return $ this ->store ->get ($ key, null );
5455 }
5556
5657 /**
You can’t perform that action at this time.
0 commit comments