You are here

public static function FeedsHTTPCache::getInstance in Feeds 7.2

Returns cache object.

Parameters

string $bin: The cache bin.

Return value

FeedsHTTPCache An instance of FeedsHTTPCache.

1 call to FeedsHTTPCache::getInstance()
FeedsHTTPCacheItem::getCacheObject in includes/FeedsHTTPCacheItem.inc
Returns cache object.

File

includes/FeedsHTTPCache.inc, line 22
Contains FeedsHTTPCache class.

Class

FeedsHTTPCache
Cache implementation for the Feeds HTTP cache.

Code

public static function getInstance($bin) {
  $cache_object = _cache_get_object($bin);
  if (!$cache_object instanceof self) {

    // A different cache class could be used for the cache_feeds_http bin that
    // does not extend FeedsHTTPCache. In this case, just instantiate the
    // FeedsHTTPCache class.
    $cache_object = new self($bin);
  }
  return $cache_object;
}