MediaWiki  REL1_24
EmptyBloomCache Class Reference
Inheritance diagram for EmptyBloomCache:
Collaboration diagram for EmptyBloomCache:

List of all members.

Public Member Functions

 __construct (array $config)
 Create a new bloom cache instance from configuration.

Protected Member Functions

 doAdd ($key, array $members)
 doDelete ($key)
 doGetStatus ($virtualKey)
 doInit ($key, $size, $precision)
 doIsHit ($key, $member)
 doSetStatus ($virtualKey, array $values)

Detailed Description

Definition at line 294 of file BloomCache.php.


Constructor & Destructor Documentation

Create a new bloom cache instance from configuration.

This should only be called from within BloomCache.

Parameters:
array$configParameters include:
  • cacheID : Prefix to all bloom filter names that is unique to this cache. It should only consist of alphanumberic, '-', and '_' characters. This ID is what avoids collisions if multiple logical caches use the same storage system, so this should be set carefully.

Reimplemented from BloomCache.

Definition at line 295 of file BloomCache.php.

References array().


Member Function Documentation

EmptyBloomCache::doAdd ( key,
array members 
) [protected]
Parameters:
string$key
array$members
Returns:
bool Success

Reimplemented from BloomCache.

Definition at line 303 of file BloomCache.php.

EmptyBloomCache::doDelete ( key) [protected]
Parameters:
string$key
Returns:
bool Success

Reimplemented from BloomCache.

Definition at line 311 of file BloomCache.php.

EmptyBloomCache::doGetStatus ( key) [protected]
Parameters:
string$key
Returns:
array|bool

Reimplemented from BloomCache.

Definition at line 319 of file BloomCache.php.

References array().

EmptyBloomCache::doInit ( key,
size,
precision 
) [protected]
Parameters:
string$key
integer$sizeBit length
float$precision
Returns:
bool Success

Reimplemented from BloomCache.

Definition at line 299 of file BloomCache.php.

EmptyBloomCache::doIsHit ( key,
member 
) [protected]
Parameters:
string$key
string$member
Returns:
bool|null

Reimplemented from BloomCache.

Definition at line 307 of file BloomCache.php.

EmptyBloomCache::doSetStatus ( virtualKey,
array values 
) [protected]
Parameters:
string$virtualKey
array$values
Returns:
bool Success

Reimplemented from BloomCache.

Definition at line 315 of file BloomCache.php.


The documentation for this class was generated from the following file: