4 * Generic interface for object stores with key encoding methods.
9 interface IStoreKeyEncoder
{
11 * Make a global cache key.
13 * @param string $class Key class
14 * @param string|null $component [optional] Key component (starting with a key collection name)
15 * @return string Colon-delimited list of $keyspace followed by escaped components of $args
17 public function makeGlobalKey( $class, $component = null );
20 * Make a cache key, scoped to this instance's keyspace.
22 * @param string $class Key class
23 * @param string|null $component [optional] Key component (starting with a key collection name)
24 * @return string Colon-delimited list of $keyspace followed by escaped components of $args
26 public function makeKey( $class, $component = null );