Constructs a QueryCache[V]
, building a JedisPool from the parameters given.
Constructs a QueryCache[V]
, building a JedisPool from the parameters given.
the hostName of the redis server to connect to
the port of the redis server to connect to
an identifier for the client using this caching mechanism, which will become part of the cache key (prepended to the actual query)
the JedisPool that the client should use to serve requests
an identifier for the client using this caching mechanism, which will become part of the cache key (prepended to the actual query)
Deletes a key->value pair from the cache.
Deletes a key->value pair from the cache.
key for value you want to delete (not including client prefix)
Retrieves the value for a passed key.
Retrieves the value for a passed key.
key for stored value (not including client prefix)
Option containing value, None if not found or timed out (async)
the cache key for the query, with client prefix prepended
Simple logback configuration.
Simple logback configuration.
Hopefully this will be discoverable by just typing loggerConfig.[TAB]
Examples:
loggerConfig.Logger("org.apache.spark").setLevel(Level.WARN)
loggerConfig.Logger().addAppender(
loggerConfig.newPatternLayoutEncoder("%-5level [%thread]: %message%n"),
loggerConfig.newConsoleAppender
)
Puts a key->value pair in the cache.
Puts a key->value pair in the cache.
key for value (not including client prefix)
Value you want stored in cache
Class holding a Redis cache of query results. This is meant to store any value
T
whereT : spray.json.JsonFormat
(anyT
with a json serialization as per spray json), keyed on string query. Multiple cache instances (instances pointing to different Redis caches) need to be configured to have different JedisPools.