Class RedisLevel2Cache

  • All Implemented Interfaces:
    Serializable, org.datanucleus.cache.Level2Cache

    public class RedisLevel2Cache
    extends org.datanucleus.cache.AbstractLevel2Cache
    Plugin using Redis as a Level2 cache. Dependent on Jedis, and Apache Commons Pool2.
    See Also:
    Serialized Form
    • Constructor Detail

      • RedisLevel2Cache

        public RedisLevel2Cache​(org.datanucleus.NucleusContext nucleusCtx)
    • Method Detail

      • close

        public void close()
      • evict

        public void evict​(Object oid)
      • evictAll

        public void evictAll()
      • evictAll

        public void evictAll​(Object[] objects)
      • evictAll

        public void evictAll​(Collection collection)
      • evictAll

        public void evictAll​(Class aClass,
                             boolean b)
      • get

        public org.datanucleus.cache.CachedPC get​(Object oid)
      • put

        public org.datanucleus.cache.CachedPC put​(Object o,
                                                  org.datanucleus.cache.CachedPC cachedPC)
      • containsOid

        public boolean containsOid​(Object o)
      • getCacheKeyForId

        protected String getCacheKeyForId​(Object id)