You are here

function qpcache_get in QueryPath 6

Same name and namespace in other branches
  1. 7.3 qpcache/qpcache.module \qpcache_get()
  2. 7.2 qpcache/qpcache.module \qpcache_get()

Retrieve an object from the cache.

Object with both a matching key and an unexpired date will be returned.

Return value

Returns the object or NULL if no object is retrieved.

File

qpcache/qpcache.module, line 84
The main file for qpcache.

Code

function qpcache_get($key) {
  $key = _qpcache_format_key($key);
  if (!isset($key)) {
    return;
  }
  return QPCache::get($key);
}