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

NameDescription
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

NameDescription
valueOf(String name)
values()