Expiring

com.phasmidsoftware.lascala.cache.Expiring
trait Expiring[K]

This trait defines the mechanism for expiring a value from the cache, that's to say the removal of the value. It doesn't say anything about scheduling an expiration.

CONSIDER renaming this trait to MutableCache, or some such name.

Type parameters

K

the key for this expiring object

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def expire(k: K): Unit

method to remove a key from the cache

method to remove a key from the cache

Value parameters

k

the key to the element which is to be expired.

Attributes