Interface ExpirableStorage<K,​V,​R extends BiPredicate<K,​V>>

  • All Superinterfaces:
    Storage<K,​V>
    All Known Subinterfaces:
    LocalStorage<K,​V>, SharedStorage<K,​V>

    public interface ExpirableStorage<K,​V,​R extends BiPredicate<K,​V>>
    extends Storage<K,​V>
    Represents a key / value store whose values expire. The values set always have an associated expiration timeout.
    • Method Detail

      • keys

        Set<K> keys​(R test)
        Returns all keys that match the given predicate
      • removeIf

        void removeIf​(R test)
        Removes all the values that matches against the given predicate