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 ...$components Key components (starting with a key collection name)
15 * @return string Colon-delimited list of $keyspace followed by escaped components
17 public function makeGlobalKey( $class, ...$components );
20 * Make a cache key, scoped to this instance's keyspace.
22 * @param string $class Key class
23 * @param string ...$components Key components (starting with a key collection name)
24 * @return string Colon-delimited list of $keyspace followed by escaped components
26 public function makeKey( $class, ...$components );