After you obtain the partition object (an instance of Cache.OrgPartition or Cache.SessionPartition), the methods to add, retrieve, and manage the cache values in a partition take the key name. The key name that you supply to these methods (get(), put(), remove(), and contains()) doesn’t include the namespace.partition prefix.
The following are methods for Partition.
public Boolean contains(String key)
public static String createFullyQualifiedKey(String namespace, String partition, String key)
Type: String
public static String createFullyQualifiedPartition(String namespace, String partition)
Type: String
public Object get(String key)
Type: Object
The cached value as a generic object type. Cast the returned value to the appropriate type.
public Boolean isAvailable()
Type: Boolean
public void put(String key, Object value)
Type: void
public void put(String key, Object value, cache.Visibility visibility)
Type: void
public void put(String key, Object value, Integer ttlSecs, cache.Visibility visibility, Boolean immutable)
Type: void
public Boolean remove(String key)
public static void validateKeyValue(Boolean isDefault, String key, Object value)
Type: void
public static void validatePartitionName(String name)
Type: void