You are here

public function CacheObjectAPIWrapper::__construct in Cache Object API 7

Constructs a new cache interface.

Parameters

$bin: The cache bin for which the object is created.

File

./cacheobject.inc, line 29
Provides Cache Object API wrapper class.

Class

CacheObjectAPIWrapper
Provides a cache class exposing hooks operating on objects before they are stored to and after they were received from the cache.

Code

public function __construct($bin) {
  $this->bin = $bin;
  $class = $this
    ->getDelegateClass();
  $this->delegate = new $class($bin);
}