Open lcharette opened 6 years ago
Also while the cache
service provides one cache store at a time, it could be useful allow for multiple cache store to be used.
Incidentally, the clear-cache
Bakery command could also accept more options.
...and it would require a way to globally disable cache (aka enable the array
store)
The current UF cache package is overly complicated for nothing and inconsistent. For example, we create a new
RedisStore
, but have to callgetInstance()
to actually get aRedisStore
.Instead of creating singleton and fake app to create the
RedisManager
, it should probably be easier to directly implement our ownCacheManager
instead so we don't have to deal with Laravel app instance. Instead of definingRedisManager
in $app it could probably be done in CacheManager directly.TODO
CacheManager
array
store to disable caching