Package

scalacache

arcus

Permalink

package arcus

Visibility
  1. Public
  2. All

Type Members

  1. class ArcusCache[V] extends AbstractCache[V] with MemcachedTTLConverter

    Permalink

    Wrapper around arcus client

  2. 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.

  3. trait MemcachedKeySanitizer extends AnyRef

    Permalink

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

  4. trait MemcachedTTLConverter extends AnyRef

    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 ArcusCache

    Permalink
  2. object ArcusClientFactory

    Permalink

    Created by ikhoon on 2017.

    Created by ikhoon on 2017. 4. 4..

Ungrouped