MediaWiki
master
|
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. More... | |
makeKey ( $collection,... $components) | |
Make a cache key using the default keyspace for the given components. More... | |
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.
Callers should:
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 WANObjectCache, ReplicatedBagOStuff, MultiWriteBagOStuff, MediumSpecificBagOStuff, CachedBagOStuff, and BagOStuff.
Referenced by Wikimedia\Rdbms\LoadMonitor\makeStateKey().
IStoreKeyEncoder::makeKey | ( | $collection, | |
$components | |||
) |
Make a cache key using the default keyspace for the given components.
Callers should:
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 WANObjectCache, ReplicatedBagOStuff, MultiWriteBagOStuff, MediumSpecificBagOStuff, CachedBagOStuff, and BagOStuff.