org.datanucleus.cache.spymemcached
Class SpymemcachedQueryResultCache

java.lang.Object
  extended by org.datanucleus.cache.spymemcached.SpymemcachedQueryResultCache
All Implemented Interfaces:
Serializable, org.datanucleus.store.query.cache.QueryResultsCache

public class SpymemcachedQueryResultCache
extends Object
implements org.datanucleus.store.query.cache.QueryResultsCache

Plugin using spymemcached implementation of "memcached" as a query results cache.

See Also:
Serialized Form

Constructor Summary
SpymemcachedQueryResultCache(org.datanucleus.NucleusContext nucleusCtx)
           
 
Method Summary
 void close()
           
 boolean contains(String queryKey)
           
 void evict(Class candidate)
           
 void evict(org.datanucleus.store.query.Query query)
           
 void evict(org.datanucleus.store.query.Query query, Map params)
           
 void evictAll()
           
 List<Object> get(String queryKey)
           
 boolean isEmpty()
           
 void pin(org.datanucleus.store.query.Query query)
           
 void pin(org.datanucleus.store.query.Query query, Map params)
           
 List<Object> put(String queryKey, List<Object> results)
           
 int size()
           
 void unpin(org.datanucleus.store.query.Query query)
           
 void unpin(org.datanucleus.store.query.Query query, Map params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpymemcachedQueryResultCache

public SpymemcachedQueryResultCache(org.datanucleus.NucleusContext nucleusCtx)
Method Detail

close

public void close()
Specified by:
close in interface org.datanucleus.store.query.cache.QueryResultsCache

contains

public boolean contains(String queryKey)
Specified by:
contains in interface org.datanucleus.store.query.cache.QueryResultsCache

evict

public void evict(Class candidate)
Specified by:
evict in interface org.datanucleus.store.query.cache.QueryResultsCache

evict

public void evict(org.datanucleus.store.query.Query query)
Specified by:
evict in interface org.datanucleus.store.query.cache.QueryResultsCache

evict

public void evict(org.datanucleus.store.query.Query query,
                  Map params)
Specified by:
evict in interface org.datanucleus.store.query.cache.QueryResultsCache

evictAll

public void evictAll()
Specified by:
evictAll in interface org.datanucleus.store.query.cache.QueryResultsCache

pin

public void pin(org.datanucleus.store.query.Query query,
                Map params)
Specified by:
pin in interface org.datanucleus.store.query.cache.QueryResultsCache

pin

public void pin(org.datanucleus.store.query.Query query)
Specified by:
pin in interface org.datanucleus.store.query.cache.QueryResultsCache

unpin

public void unpin(org.datanucleus.store.query.Query query,
                  Map params)
Specified by:
unpin in interface org.datanucleus.store.query.cache.QueryResultsCache

unpin

public void unpin(org.datanucleus.store.query.Query query)
Specified by:
unpin in interface org.datanucleus.store.query.cache.QueryResultsCache

get

public List<Object> get(String queryKey)
Specified by:
get in interface org.datanucleus.store.query.cache.QueryResultsCache

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface org.datanucleus.store.query.cache.QueryResultsCache

put

public List<Object> put(String queryKey,
                        List<Object> results)
Specified by:
put in interface org.datanucleus.store.query.cache.QueryResultsCache

size

public int size()
Specified by:
size in interface org.datanucleus.store.query.cache.QueryResultsCache


Copyright © 2011. All Rights Reserved.