@@ -80,9 +80,9 @@ public function dump(string $dumper) : Collection
8080 public  function  geocodeQuery (GeocodeQuery $ queryself 
8181 {
8282 $ cacheKeyserialize ($ query
83-  $ this results  = app ('cache ' )->remember (
83+  $ this results  = app ('cache ' )->store ( config ( ' geocoder.cache.store ' ,  null ))-> remember (
8484 "geocoder- {$ cacheKey ,
85-  config ('geocoder.cache- duration ' , 0 ),
85+  config ('geocoder.cache. duration ' , 0 ),
8686 function  () use  ($ query
8787 return  collect ($ this aggregator ->geocodeQuery ($ query
8888 }
@@ -96,9 +96,9 @@ function () use ($query) {
9696 public  function  reverseQuery (ReverseQuery $ queryself 
9797 {
9898 $ cacheKeyserialize ($ query
99-  $ this results  = app ('cache ' )->remember (
99+  $ this results  = app ('cache ' )->store ( config ( ' geocoder.cache.store ' ,  null ))-> remember (
100100 "geocoder- {$ cacheKey ,
101-  config ('geocoder.cache- duration ' , 0 ),
101+  config ('geocoder.cache. duration ' , 0 ),
102102 function  () use  ($ query
103103 return  collect ($ this aggregator ->reverseQuery ($ query
104104 }
@@ -117,9 +117,9 @@ public function getName() : string
117117 public  function  geocode (string  $ valueself 
118118 {
119119 $ cacheKeystr_slug (strtolower (urlencode ($ value
120-  $ this results  = app ('cache ' )->remember (
120+  $ this results  = app ('cache ' )->store ( config ( ' geocoder.cache.store ' ,  null ))-> remember (
121121 "geocoder- {$ cacheKey ,
122-  config ('geocoder.cache- duration ' , 0 ),
122+  config ('geocoder.cache. duration ' , 0 ),
123123 function  () use  ($ value
124124 return  collect ($ this aggregator ->geocode ($ value
125125 }
@@ -133,9 +133,9 @@ function () use ($value) {
133133 public  function  reverse (float  $ latitudefloat  $ longitudeself 
134134 {
135135 $ cacheKeystr_slug (strtolower (urlencode ("{$ latitude- {$ longitude )));
136-  $ this results  = app ('cache ' )->remember (
136+  $ this results  = app ('cache ' )->store ( config ( ' geocoder.cache.store ' ,  null ))-> remember (
137137 "geocoder- {$ cacheKey ,
138-  config ('geocoder.cache- duration ' , 0 ),
138+  config ('geocoder.cache. duration ' , 0 ),
139139 function  () use  ($ latitude$ longitude
140140 return  collect ($ this aggregator ->reverse ($ latitude$ longitude
141141 }
@@ -264,7 +264,7 @@ protected function getAdapterClass(string $provider) : string
264264
265265 protected  function  removeEmptyCacheEntry (string  $ cacheKey
266266 {
267-  $ resultapp ('cache ' )->get ($ cacheKey
267+  $ resultapp ('cache ' )->store ( config ( ' geocoder.cache.store ' ,  null ))-> get ($ cacheKey
268268
269269 if  ($ result$ resultisEmpty ()) {
270270 app ('cache ' )->forget ($ cacheKey
0 commit comments