function alchemy_cache_get in Alchemy 7
Same name and namespace in other branches
- 6 alchemy.module \alchemy_cache_get()
@todo Please document this function.
See also
1 call to alchemy_cache_get()
- alchemy_get_elements in ./
alchemy.module - @todo Please document this function.
File
- ./
alchemy.module, line 285 - $Id: alchemy.module,v 1.1.2.3 2010/11/17 21:17:48 tomdude48 Exp $
Code
function alchemy_cache_get($cid, $command) {
$query = db_select('alchemy_cache', 'c')
->fields('c', array(
'data',
))
->condition('c.nid', $cid)
->condition('c.command', $command);
if ($data = $query
->execute()
->fetchField()) {
return $data;
}
return FALSE;
}