|
@@ -11,6 +11,11 @@
|
|
|
|
|
|
|
|
*/
|
|
*/
|
|
|
|
|
|
-Route::get('/', function () {
|
|
|
|
- return view('welcome');
|
|
|
|
|
|
+$this->get('/', function (Illuminate\Contracts\Cache\Factory $cache) {
|
|
|
|
+ /** @var \Illuminate\Contracts\Cache\Store $store */
|
|
|
|
+ $store = $cache->store();
|
|
|
|
+ $cid = 'some cid';
|
|
|
|
+ $store->put($cid, 'value', 10);
|
|
|
|
+ $v = $store->get($cid);
|
|
|
|
+ return $v;
|
|
});
|
|
});
|