Skip to content

Commit f205b38

Browse files
committed
wip
1 parent 9c17c57 commit f205b38

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

config/usercache.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,10 @@
1515
*/
1616
'cache_profile' => \Foxws\UserCache\CacheProfiles\CacheAllSuccessful::class,
1717

18-
/*
19-
* This setting determines if the cache time should be added to a cached response.
20-
* This can be handy when debugging.
21-
*/
22-
'add_cache_time_key' => env('APP_DEBUG', false),
23-
2418
/*
2519
* This must be the name of any store that is configured in config/cache.php.
2620
*/
27-
'cache_store' => env('USER_CACHE_STORE') ?: env('CACHE_STORE', 'redis'),
21+
'cache_store' => env('USER_CACHE_STORE') ?: env('CACHE_STORE', 'database'),
2822

2923
/*
3024
* Default time-to-live for cache items in seconds.

src/UserCacheServiceProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
use Foxws\UserCache\CacheProfiles\CacheProfile;
66
use Foxws\UserCache\Commands\ClearCommand;
7-
use Foxws\UserCache\Hasher\EloquentHasher;
7+
use Foxws\UserCache\Hasher\CacheHasher;
88
use Foxws\UserCache\Serializers\Serializer;
99
use Illuminate\Cache\Repository;
1010
use Illuminate\Container\Container;
@@ -29,7 +29,7 @@ public function packageBooted()
2929
return $app->make(config('usercache.cache_profile'));
3030
});
3131

32-
$this->app->bind(EloquentHasher::class, function (Container $app) {
32+
$this->app->bind(CacheHasher::class, function (Container $app) {
3333
return $app->make(config('usercache.hasher'));
3434
});
3535

0 commit comments

Comments
 (0)