Class Overview
Cache implementation that does nothing when a Query should be cached.
Summary
Public Constructors |
|
NoCache()
Creates a NoCache .
|
[Expand]
Inherited Methods |
From class
java.lang.Object
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
final
Class<?>
|
getClass()
Returns the runtime class of an object.
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait(long timeout, int nanos)
Causes current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or some other
thread interrupts the current thread, or a certain amount of real time has
elapsed.
|
final
void
|
wait(long timeout)
Causes current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a specified
amount of time has elapsed.
|
final
void
|
wait()
Causes current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
|
From interface
com.neomades.content.cache.Cache
abstract
void
|
clear()
Clears the cache.
|
abstract
CacheEntry
|
get(String key)
Retrieves a CacheEntry from the cache associated with the given key.
|
abstract
void
|
initialize()
Performs any potentially long-running actions needed to initialize the cache.
|
abstract
void
|
invalidate(String key, boolean fullExpire)
Invalidates an entry in the cache.
|
abstract
void
|
put(String key, CacheEntry entry)
|
abstract
void
|
remove(String key)
Removes an entry from the cache.
|
|
Fields
public
static
final
NoCache
INSTANCE
Public Constructors
Public Methods
public
void
initialize
()
public
void
invalidate
(String key, boolean fullExpire)
Parameters
key |
the cache key |
fullExpire |
true to ignore the current cache data
|
Parameters
key |
the cache key |
entry |
Data to store in the cache
|
public
void
remove
(String key)