protected function APDQCache::apdqcCacheCompressionLevelBin 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::apdqcCacheCompressionLevelBin()
- APDQCache::__construct in ./
apdqc.cache.inc - Constructs a DrupalDatabaseCache object.
File
- ./
apdqc.cache.inc, line 313 - 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 apdqcCacheCompressionLevelBin($bin) {
$compress = variable_get('apdqc_cache_compression_level_' . $bin);
if (!isset($compress)) {
$compress = variable_get('apdqc_cache_default_compression_level', APDQC_CACHE_DEFAULT_COMPRESSION_LEVEL);
}
return $compress;
}