public function AuthcacheP13nDatabaseKeyValueStore::getOne in Authenticated User Page Caching (Authcache) 7.2
Return the value from the collection for the given key.
Parameters
string $key: A key.
Overrides AuthcacheP13nKeyValueStoreInterface::getOne
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nDatabaseKeyValueStore.inc, line 57 - Defines database based implementation of a key-value store.
Class
- AuthcacheP13nDatabaseKeyValueStore
- Database based implementation of key-value store.
Code
public function getOne($key) {
$result = $this
->get(array(
$key,
));
if (count($result) > 0) {
return reset($result);
}
}