wiki.techinc.nl/includes/libs/objectcache/IStoreKeyEncoder.php
Ebrahim Byagowi fab78547ad Add namespace to the root classes of ObjectCache
And deprecated aliases for the the no namespaced classes.

ReplicatedBagOStuff that already is deprecated isn't moved.

Bug: T353458
Change-Id: Ie01962517e5b53e59b9721e9996d4f1ea95abb51
2024-07-10 00:14:54 +03:30

34 lines
676 B
PHP

<?php
namespace Wikimedia\ObjectCache;
/**
* Key-encoding methods for object caching (BagOStuff and WANObjectCache)
*
* @ingroup Cache
* @since 1.34
*/
interface IStoreKeyEncoder {
/**
* @see BagOStuff::makeGlobalKey
*
* @param string $keygroup
* @param string|int ...$components
*
* @return string
*/
public function makeGlobalKey( $keygroup, ...$components );
/**
* @see BagOStuff::makeKey
*
* @param string $keygroup
* @param string|int ...$components
*
* @return string
*/
public function makeKey( $keygroup, ...$components );
}
/** @deprecated class alias since 1.43 */
class_alias( IStoreKeyEncoder::class, 'IStoreKeyEncoder' );