WURFL/Storage/Base.php
public function setCacheStorage(WURFL_Storage_Base $cache)
    {
        if (!$this->supportsSecondaryCaching()) {
            throw new WURFL_Storage_Exception("The storage provider ".get_class($cache)." cannot be used as a cache for ".get_class($this));
        }
        $this->cache = $cache;
    }
public function setCacheStorage(WURFL_Storage_Base $cache)
    {
        if (!$this->supportsSecondaryCaching()) {
            throw new WURFL_Storage_Exception("The storage provider ".get_class($cache)." cannot be used as a cache for ".get_class($this));
        }
        $this->cache = $cache;
    }
public function setCacheStorage ( WURFL_Storage_Base $ cache ) { if ( ! $ this -> supportsSecondaryCaching ( ) ) { throw new WURFL_Storage_Exception ( "The storage provider " . get_class ( $ cache ) . " cannot be used as a cache for " . get_class ( $ this ) ) ; } $ this -> cache = $ cache ; }
Sets the cache provider for the persistence provider; this is used to
cache data in a volatile storage system like APC in front of a slow
persistence provider like the filesystem.

@param WURFL_Storage_Base $cache
Sets the cache provider for the persistence provider ; this is used to cache data in a volatile storage system like APC in front of a slow persistence provider like the filesystem .