Class GCacheFactory

java.lang.Object
com.google.appengine.api.memcache.stdimpl.GCacheFactory
All Implemented Interfaces:
javax.cache.CacheFactory

public class GCacheFactory extends Object implements javax.cache.CacheFactory
JCache CacheFactory implementation using Memcache.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Property key for absolute expiration time for all put operations as a Date.
    static final int
    Property key for expiration time in seconds set for all put operations as an Integer.
    static final int
    Property key for expiration time in milliseconds set for all put operations as an Integer.
    static final int
    Property key for memcache service to use as a MemcacheService.
    static final int
    Property key for defining a non-default namespace.
    static final int
    Property key for put operation policy as a MemcacheService.SetPolicy.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    javax.cache.Cache
    Creates a cache instance using the memcache service.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EXPIRATION_DELTA

      public static final int EXPIRATION_DELTA
      Property 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_MILLIS
      Property key for expiration time in milliseconds set for all put operations as an Integer.
      See Also:
    • EXPIRATION

      public static final int EXPIRATION
      Property key for absolute expiration time for all put operations as a Date.
      See Also:
    • SET_POLICY

      public static final int SET_POLICY
      Property key for put operation policy as a MemcacheService.SetPolicy. Defaults to SetPolicy.SET_ALWAYS if not specified.
      See Also:
    • MEMCACHE_SERVICE

      public static final int MEMCACHE_SERVICE
      Property key for memcache service to use as a MemcacheService. Defaults to that provided by MemcacheServiceFactory.getMemcacheService if not specified.
      See Also:
    • NAMESPACE

      public static final int NAMESPACE
      Property key for defining a non-default namespace. This has the same effect setting a namespace using MemcacheServiceFactory.getMemcacheService(String). This property is ignored if MEMCACHE_SERVICE property specified.
      See Also:
  • Constructor Details

    • GCacheFactory

      public GCacheFactory()
  • Method Details

    • createCache

      public javax.cache.Cache createCache(Map map)
      Creates a cache instance using the memcache service.
      Specified by:
      createCache in interface javax.cache.CacheFactory
      Parameters:
      map - A map of properties.
      Returns:
      a cache.