Enum MemcacheService.SetPolicy (2.0.0)

public enum MemcacheService.SetPolicy extends Enum<MemcacheService.SetPolicy>

Cache replacement strategies for MemcacheService#put operations, indicating how to handle putting a value that already exists.

Static Fields

Name Description
ADD_ONLY_IF_NOT_PRESENT

An additive-only strategy, useful to avoid race conditions.

REPLACE_ONLY_IF_PRESENT

A replace-only strategy.

SET_ALWAYS

Always stores the new value. If an existing value was stored with the given key, it will be discarded and replaced.

Static Methods

Name Description
valueOf(String name)
values()