public class

NoCache

extends Object
implements Cache
java.lang.Object
   ↳ com.neomades.content.cache.NoCache

Class Overview

Cache implementation that does nothing when a Query should be cached.

Summary

Fields
public static final NoCache INSTANCE
Public Constructors
NoCache()
Creates a NoCache.
Public Methods
void clear()
Does nothing.
CacheEntry get(String key)
Does nothing.
void initialize()
Does nothing.
void invalidate(String key, boolean fullExpire)
Does nothing.
void put(String key, CacheEntry entry)
Does nothing.
void remove(String key)
Does nothing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.neomades.content.cache.Cache

Fields

public static final NoCache INSTANCE

Public Constructors

public NoCache ()

Creates a NoCache.

Public Methods

public void clear ()

Does nothing.

public CacheEntry get (String key)

Does nothing.

Parameters
key the cache key
Returns
  • null

public void initialize ()

Does nothing.

public void invalidate (String key, boolean fullExpire)

Does nothing.

Parameters
key the cache key
fullExpire true to ignore the current cache data

public void put (String key, CacheEntry entry)

Does nothing.

Parameters
key the cache key
entry Data to store in the cache

public void remove (String key)

Does nothing.

Parameters
key the cache key