You are here

protected function APDQCache::apdqcCacheCompressBin in Asynchronous Prefetch Database Query Cache 7

Checks if this cache bin is compressed or not.

Parameters

string $bin: The cache bin name.

Return value

bool TRUE if this cache bin is compressed.

1 call to APDQCache::apdqcCacheCompressBin()
APDQCache::__construct in ./apdqc.cache.inc
Constructs a DrupalDatabaseCache object.

File

./apdqc.cache.inc, line 296
Extends Drupal's default database cache so async queries happen.

Class

APDQCache
A pretty darn quick cache implementation of Drupal's default cache backend.

Code

protected function apdqcCacheCompressBin($bin) {
  $compress = variable_get('apdqc_cache_compress_' . $bin);
  if (!isset($compress)) {
    $compress = variable_get('apdqc_cache_default_compress', APDQC_CACHE_DEFAULT_COMPRESS);
  }
  return $compress;
}