The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

lookup

Returns the cached value if we have it. Intended to be a low-overhead method for interacting with local, nonblocking caches.

Takes a single $query parameter which will be the query we're trying to find.

Returns an empty list if we don't have an answer in the cache, undef if we have an answer and that answer is "no value", otherwise returns whatever value we have on file.

store

Store a value in the cache.

Takes the following parameters:

  • $query - query to store under

  • $value - value to store in key (can be undef)

Returns $self.

INHERITED METHODS

EntityModel::StorageClass::KVStore::Layer

key_mangle, retrieval_fallback, retrieve, shutdown, underlayer