cachebox.system.cache.store

Class BlackholeStore

lucee.Component
    extended by cachebox.system.cache.store.BlackholeStore
All Implemented Interfaces:
IObjectStore

I am the fastest way to cache objects. I am so fast because I dont do anything. I'm really a tool to use when working on caching strategies. When I am in use nothing is cached. It just vanishes.

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Constructor Summary
    init(any<ICacheProvider> cacheProvider)
          Constructor.
    Method Summary
    any clear(any objectKey)
         Clears an object from the storage pool.
    void clearAll()
         No work to do.
    void expireObject(any objectKey)
         Mark an object for expiration.
    void flush()
         Pretends to flush the store to a permanent storage.
    any get(any objectKey)
         Returns null.
    any getIndexer()
         No work to do.
    any getKeys()
         No work to do.
    any getQuiet(any objectKey)
         Returns null.
    any getSize()
         Get the cache's size in items.
    any getStoreID()
         Get this storage's ID.
    any isExpired(any objectKey)
         Test if an object in the store has expired or not.
    any lookup(any objectKey)
         Returns false.
    void reap()
         Pretends to reap the storage, clean it from old stuff.
    void set(any objectKey, any object, [any timeout=''], [any lastAccessTimeout=''], [any extras='[runtime expression]'])
         Saves an object in a blackhole.
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any<ICacheProvider> cacheProvider)

    Constructor

    Parameters:
    cacheProvider - The associated cache provider as cachebox.system.cache.ICacheProvider

    Method Detail

    clear

    public any clear(any objectKey)

    Clears an object from the storage pool

    Specified by:
    clear in interface IObjectStore
    Parameters:
    objectKey - The object key

    clearAll

    public void clearAll()

    No work to do. Everything is already in the blackhole.

    Specified by:
    clearAll in interface IObjectStore

    expireObject

    public void expireObject(any objectKey)

    Mark an object for expiration

    Specified by:
    expireObject in interface IObjectStore
    Parameters:
    objectKey - The object key

    flush

    public void flush()

    Pretends to flush the store to a permanent storage

    Specified by:
    flush in interface IObjectStore

    get

    public any get(any objectKey)

    Returns null. This is a blackhole.

    Specified by:
    get in interface IObjectStore
    Parameters:
    objectKey - The key of the object

    getIndexer

    public any getIndexer()

    No work to do. Everything is already in the blackhole.

    Specified by:
    getIndexer in interface IObjectStore

    getKeys

    public any getKeys()

    No work to do. Everything is already in the blackhole.

    Specified by:
    getKeys in interface IObjectStore

    getQuiet

    public any getQuiet(any objectKey)

    Returns null. This is a blackhole.

    Specified by:
    getQuiet in interface IObjectStore
    Parameters:
    objectKey - The key of the object

    getSize

    public any getSize()

    Get the cache's size in items

    Specified by:
    getSize in interface IObjectStore

    getStoreID

    public any getStoreID()

    Get this storage's ID


    isExpired

    public any isExpired(any objectKey)

    Test if an object in the store has expired or not

    Specified by:
    isExpired in interface IObjectStore
    Parameters:
    objectKey - The object key

    lookup

    public any lookup(any objectKey)

    Returns false. No work to do. Everything is already in the blackhole.

    Specified by:
    lookup in interface IObjectStore
    Parameters:
    objectKey - The key of the object

    reap

    public void reap()

    Pretends to reap the storage, clean it from old stuff.

    Specified by:
    reap in interface IObjectStore

    set

    public void set(any objectKey, any object, [any timeout=''], [any lastAccessTimeout=''], [any extras='[runtime expression]'])

    Saves an object in a blackhole. You'll never see it again.

    Specified by:
    set in interface IObjectStore
    Parameters:
    objectKey - The object key
    object - The object to save
    timeout - Timeout in minutes
    lastAccessTimeout - Timeout in minutes
    extras - A map of extra name-value pairs