scalacache.memcached

Type members

Classlikes

case
class HashingMemcachedKeySanitizer(algorithm: HashingAlgorithm) extends MemcachedKeySanitizer

HashingMemcachedKeySanitizer uses the provided scalacache.HashingAlgorithm to create a valid Memcached key using characters in hexadecimal. You may want to use this MemcachedKeySanitizer if there is a possibility that your keys will contain non-ASCII characters.

HashingMemcachedKeySanitizer uses the provided scalacache.HashingAlgorithm to create a valid Memcached key using characters in hexadecimal. You may want to use this MemcachedKeySanitizer if there is a possibility that your keys will contain non-ASCII characters.

Make sure that the HashingAlgorithm you provide does not produce strings that are beyond 250 characters when combined with any additional namespacing that your MemcachedClient or proxy automatically inserts for you.

class MemcachedCache[F[_], V](val client: MemcachedClient, val keySanitizer: MemcachedKeySanitizer)(implicit evidence$1: Async[F], val codec: BinaryCodec[V]) extends AbstractCache[F, String, V] with MemcachedTTLConverter

Wrapper around spymemcached

Wrapper around spymemcached

Companion
object
Companion
class
class MemcachedException(message: String) extends Exception

Trait that you can use to define your own Memcached key sanitiser

Trait that you can use to define your own Memcached key sanitiser

case
class ReplaceAndTruncateSanitizer(replacementChar: String, maxKeyLength: Int) extends MemcachedKeySanitizer

Sanitizer that replaces characters invalid for Memcached and truncates keys if they are over a certain limit.

Sanitizer that replaces characters invalid for Memcached and truncates keys if they are over a certain limit.

Convenient because it creates human-readable keys, but only safe for ASCII chars.

Value Params
maxKeyLength

optional, defaults to 250, which is the max length of a Memcached key

replacementChar

optional, defaults to an underscore