Class MemcachedStorageCapabilities
java.lang.Object
org.opensaml.storage.impl.memcached.MemcachedStorageCapabilities
- All Implemented Interfaces:
StorageCapabilities
Provides a description of memcached capabilities. Note that only value size is configurable since memcached supports
increasing the maximum slab size via the
-I flag. MemcachedStorageService supports
arbitrarily large context names and keys by hashing values longer than 250 bytes, which is the maximum size allowed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static longMemcached supports 1M slabs (i.e.private final longMaximum size of memcached values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets max size of context labels in characters.intGets max size of keys in characters.longGets max size of values in characters.booleanReturns true iff the storage implementation manages data independent of a single server node.booleanReturns true iff the storage implementation manages data independent of the client.
-
Field Details
-
defaultMaxValue
private static long defaultMaxValueMemcached supports 1M slabs (i.e. values) by default and issues warning on increase. -
valueSize
Maximum size of memcached values.
-
-
Constructor Details
-
MemcachedStorageCapabilities
public MemcachedStorageCapabilities()Constructor. -
MemcachedStorageCapabilities
Constructor.- Parameters:
maxValueSize- maximum value size
-
-
Method Details
-
getContextSize
public int getContextSize()Gets max size of context labels in characters.- Specified by:
getContextSizein interfaceStorageCapabilities- Returns:
- max size of context labels in characters
-
getKeySize
public int getKeySize()Gets max size of keys in characters.- Specified by:
getKeySizein interfaceStorageCapabilities- Returns:
- max size of keys in characters
-
getValueSize
public long getValueSize()Gets max size of values in characters.- Specified by:
getValueSizein interfaceStorageCapabilities- Returns:
- max size of values in characters
-
isServerSide
public boolean isServerSide()Returns true iff the storage implementation manages data independent of the client.- Specified by:
isServerSidein interfaceStorageCapabilities- Returns:
- true iff the storage implementation manages data independent of the client
-
isClustered
public boolean isClustered()Returns true iff the storage implementation manages data independent of a single server node.- Specified by:
isClusteredin interfaceStorageCapabilities- Returns:
- true iff the storage implementation manages data independent of a single server node
-