Transfer version 1.1

transfer.com.collections
Class QueryCache

WEB-INF.cftags.component
        extended by transfer.com.collections.QueryCache

public class QueryCache
extends WEB-INF.cftags.component

A query caching mechanism


Constructor Summary
init()
          Constructor
 
Method Summary
 void cacheQuery(query query, string key, [transfer.com.collections.date expireDateTime='[runtime expression]'])
          Caches a given query
 boolean checkQuery(string key)
          Returns true if the query exists, and hasn't expired
private struct getExpireyCollection()
 query getQuery(string key)
          Retrieves a query from the cache
private struct getQueryCollection()
 void removeQuery(string key)
          removes a query from the cache
private void setExpireyCollection(struct ExpireyCollection)
private void setQueryCollection(struct QueryCollection)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init()
Constructor

Method Detail

cacheQuery

public void cacheQuery(query query, string key, [transfer.com.collections.date expireDateTime='[runtime expression]'])
Caches a given query

Parameters:
query - The query to cache
key - The unique key to store the query under
expireDateTime - The date-time that the query should expire, default of 'never'

checkQuery

public boolean checkQuery(string key)
Returns true if the query exists, and hasn't expired

Parameters:
key - The unique key to store the query under

getExpireyCollection

private struct getExpireyCollection()


getQuery

public query getQuery(string key)
Retrieves a query from the cache

Parameters:
key - The unique key the query is stored under

getQueryCollection

private struct getQueryCollection()


removeQuery

public void removeQuery(string key)
removes a query from the cache

Parameters:
key - The unique key the query is stored under

setExpireyCollection

private void setExpireyCollection(struct ExpireyCollection)

Parameters:
ExpireyCollection

setQueryCollection

private void setQueryCollection(struct QueryCollection)

Parameters:
QueryCollection

Transfer version 1.1