public class PrefixKeyHashingScheme extends Object implements KeyHashingScheme
KeyHashingSchemedecorator that simply adds a known prefix to the results of another
KeyHashingScheme. Primarily useful for namespacing a shared memcached cluster, for example.
|Constructor and Description|
Creates a new
public PrefixKeyHashingScheme(String prefix, KeyHashingScheme backingScheme)
KeyHashingSchemethat prepends the given prefix to the results of hashes from the given backing scheme. Users should be aware that memcached has a fixed maximum key length, so the combination of this prefix plus the results of the backing hashing scheme must still fit within these limits.
Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.