AbstractCache
An abstract implementation of CacheAlg that takes care of some things that are common across all concrete implementations.
If you are writing a cache implementation, you probably want to extend this trait rather than extending CacheAlg directly.
- Type Params
- V
The value of types stored in the cache.
Value members
Abstract methods
Concrete methods
- Definition Classes
- Definition Classes
- Definition Classes
Inherited methods
You should call this when you have finished using this Cache. (e.g. when your application shuts down)
You should call this when you have finished using this Cache. (e.g. when your application shuts down)
It will take care of gracefully shutting down the underlying cache client.
Note that you should not try to use this Cache instance after you have called this method.
- Inherited from
- CacheAlg
Output a debug log to record the result of a cache lookup
Output a debug log to record the result of a cache lookup
- Type Params
- A
the type of the cache value
- Value Params
- key
the key that was looked up
- result
the result of the cache lookup
- Inherited from
- LoggingSupport
Output a debug log to record a cache insertion/update
Output a debug log to record a cache insertion/update
- Value Params
- key
the key that was inserted/updated
- ttl
the TTL of the inserted entry
- Inherited from
- LoggingSupport