Package

scalacache

memcached

Permalink

package memcached

Visibility
  1. Public
  2. All

Type Members

  1. case class HashingMemcachedKeySanitizer(algorithm: HashingAlgorithm = MD5) extends MemcachedKeySanitizer with Product with Serializable

    Permalink

    HashingMemcachedKeySanitizer uses the provided scalacache.HashingAlgorithm to create a valid Memcached key using characters in hexadecimal.

    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.

  2. class MemcachedCache extends Cache with MemcachedTTLConverter with StrictLogging with LoggingSupport

    Permalink

    Wrapper around spymemcached

  3. trait MemcachedKeySanitizer extends AnyRef

    Permalink

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

  4. trait MemcachedTTLConverter extends StrictLogging

    Permalink
  5. case class ReplaceAndTruncateSanitizer(replacementChar: String = "_", maxKeyLength: Int = 250) extends MemcachedKeySanitizer with Product with Serializable

    Permalink

    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.

    replacementChar

    optional, defaults to an underscore

    maxKeyLength

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

Value Members

  1. object MemcachedCache

    Permalink

Ungrouped