Attributes
- Companion:
- object
- Source:
- MemoryCache.scala
- Graph
- Supertypes
Members list
Value members
Concrete methods
Delete an item from the cache. Won't do anything if the item is not present.
Delete an item from the cache. Won't do anything if the item is not present.
Attributes
- Source:
- MemoryCache.scala
Insert an item in the cache, using the default expiration value of the cache.
Insert an item in the cache, using the default expiration value of the cache.
Attributes
- Source:
- MemoryCache.scala
Insert an item in the cache, with an explicit expiration value.
Insert an item in the cache, with an explicit expiration value.
If the expiration value is None, the item will never expire. The default expiration value of the cache is ignored.
The expiration value is relative to the current clockMonotonic time, i.e. it will be automatically added to the result of clockMonotonic for the supplied unit.
Attributes
- Source:
- MemoryCache.scala
Lookup an item with the given key, and delete it if it is expired.
Lookup an item with the given key, and delete it if it is expired.
The function will only return a value if it is present in the cache and if the item is not expired.
The function will eagerly delete the item from the cache if it is expired.
Attributes
- Source:
- MemoryCache.scala
Lookup an item with the given key, but don't delete it if it is expired.
Lookup an item with the given key, but don't delete it if it is expired.
The function will only return a value if it is present in the cache and if the item is not expired.
The function will not delete the item from the cache.
Attributes
- Source:
- MemoryCache.scala
Delete all items that are expired.
Delete all items that are expired.
This is one big atomic operation.
Attributes
- Source:
- MemoryCache.scala
Change the default expiration value of newly added cache items. Shares an underlying reference with the other cache. Use copyMemoryCache if you want different caches.
Change the default expiration value of newly added cache items. Shares an underlying reference with the other cache. Use copyMemoryCache if you want different caches.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onCacheHit
effect being the new function.
Reference to this MemoryCache with the onCacheHit
effect being the new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onCacheMiss
effect being the new function.
Reference to this MemoryCache with the onCacheMiss
effect being the new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onDelete
effect being the new function.
Reference to this MemoryCache with the onDelete
effect being the new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onInsert
effect being the new function.
Reference to this MemoryCache with the onInsert
effect being the new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onCacheHit
effect being composed of the old and new function.
Reference to this MemoryCache with the onCacheHit
effect being composed of the old and new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onCacheMiss
effect being composed of the old and new function.
Reference to this MemoryCache with the onCacheMiss
effect being composed of the old and new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onDelete
effect being composed of the old and new function.
Reference to this MemoryCache with the onDelete
effect being composed of the old and new function.
Attributes
- Source:
- MemoryCache.scala
Reference to this MemoryCache with the onInsert
effect being composed of the old and new function.
Reference to this MemoryCache with the onInsert
effect being composed of the old and new function.
Attributes
- Source:
- MemoryCache.scala
Implicits
Implicits
Attributes
- Source:
- MemoryCache.scala