MediaWiki REL1_37
|
Generic interface for object stores with key encoding methods. More...
Public Member Functions | |
makeGlobalKey ( $collection,... $components) | |
Make a cache key using the "global" keyspace for the given components. | |
makeKey ( $collection,... $components) | |
Make a cache key using the default keyspace for the given components. | |
Generic interface for object stores with key encoding methods.
Definition at line 9 of file IStoreKeyEncoder.php.
IStoreKeyEncoder::makeGlobalKey | ( | $collection, | |
$components | |||
) |
Make a cache key using the "global" keyspace for the given components.
Encoding is limited to the escaping of delimiter (":") and escape ("%") characters. Any backend-specific encoding should be delegated to methods that use the network.
string | $collection | Key collection name component |
string|int | ...$components Additional, ordered, key components for entity IDs |
Implemented in BagOStuff, CachedBagOStuff, MediumSpecificBagOStuff, MultiWriteBagOStuff, ReplicatedBagOStuff, and WANObjectCache.
IStoreKeyEncoder::makeKey | ( | $collection, | |
$components | |||
) |
Make a cache key using the default keyspace for the given components.
Encoding is limited to the escaping of delimiter (":") and escape ("%") characters. Any backend-specific encoding should be delegated to methods that use the network.
string | $collection | Key collection name component |
string|int | ...$components Additional, ordered, key components for entity IDs |
Implemented in BagOStuff, CachedBagOStuff, MediumSpecificBagOStuff, MultiWriteBagOStuff, ReplicatedBagOStuff, and WANObjectCache.