1.20.x cache_database.inc BackdropDatabaseCache::get(string $cid)

Implements BackdropCacheInterface::get().

Overrides BackdropCacheInterface::get

File

drivers/cache_database/cache_database.inc, line 32

Class

BackdropDatabaseCache
Defines a default cache implementation.

Code

function get(string $cid) {
  $cids = array($cid);
  $cache = $this->getMultiple($cids);
  return reset($cache);
}