HashingMemcachedKeySanitizer

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.

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.

trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def toValidMemcachedKey(key: String): String

Uses the specified hashing algorithm to digest a key and spit out a hexidecimal representation of the hashed key

Uses the specified hashing algorithm to digest a key and spit out a hexidecimal representation of the hashed key

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product