Class GCacheFactory
java.lang.Object
com.google.appengine.api.memcache.stdimpl.GCacheFactory
- All Implemented Interfaces:
javax.cache.CacheFactory
JCache CacheFactory implementation using Memcache.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intProperty key for absolute expiration time for all put operations as a.invalid reference
Datestatic final intProperty key for expiration time in seconds set for all put operations as an Integer.static final intProperty key for expiration time in milliseconds set for all put operations as an Integer.static final intProperty key for memcache service to use as aMemcacheService.static final intProperty key for defining a non-default namespace.static final intProperty key for put operation policy as aMemcacheService.SetPolicy. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.cache.CachecreateCache(Map map) Creates a cache instance using the memcache service.
-
Field Details
-
EXPIRATION_DELTA
public static final int EXPIRATION_DELTAProperty key for expiration time in seconds set for all put operations as an Integer.- See Also:
-
EXPIRATION_DELTA_MILLIS
public static final int EXPIRATION_DELTA_MILLISProperty key for expiration time in milliseconds set for all put operations as an Integer.- See Also:
-
EXPIRATION
public static final int EXPIRATIONProperty key for absolute expiration time for all put operations as a.invalid reference
Date- See Also:
-
SET_POLICY
public static final int SET_POLICYProperty key for put operation policy as aMemcacheService.SetPolicy. Defaults toif not specified.invalid reference
SetPolicy.SET_ALWAYS- See Also:
-
MEMCACHE_SERVICE
public static final int MEMCACHE_SERVICEProperty key for memcache service to use as aMemcacheService. Defaults to that provided byif not specified.invalid reference
MemcacheServiceFactory.getMemcacheService- See Also:
-
NAMESPACE
public static final int NAMESPACEProperty key for defining a non-default namespace. This has the same effect setting a namespace usingMemcacheServiceFactory.getMemcacheService(String). This property is ignored if MEMCACHE_SERVICE property specified.- See Also:
-
-
Constructor Details
-
GCacheFactory
public GCacheFactory()
-
-
Method Details
-
createCache
Creates a cache instance using the memcache service.- Specified by:
createCachein interfacejavax.cache.CacheFactory- Parameters:
map- A map of properties.- Returns:
- a cache.
-