45 unset(
$params[
'reportDupes'] );
53 protected function doGet( $key, $flags = 0 ) {
54 $ret = parent::doGet( $key, $flags );
55 if (
$ret ===
false && !$this->
hasKey( $key ) ) {
56 $ret = $this->backend->doGet( $key, $flags );
62 public function set( $key,
$value, $exptime = 0, $flags = 0 ) {
63 parent::set( $key,
$value, $exptime, $flags );
64 if ( !( $flags & self::WRITE_CACHE_ONLY ) ) {
65 $this->backend->set( $key,
$value, $exptime, $flags & ~self::WRITE_CACHE_ONLY );
70 public function delete( $key, $flags = 0 ) {
71 parent::delete( $key );
72 if ( !( $flags & self::WRITE_CACHE_ONLY ) ) {
73 $this->backend->delete( $key );
80 parent::setDebug( $bool );
81 $this->backend->setDebug( $bool );
85 parent::deleteObjectsExpiringBefore( $date, $progressCallback );
86 return $this->backend->deleteObjectsExpiringBefore( $date, $progressCallback );
90 return $this->backend->makeKeyInternal( ...func_get_args() );
93 public function makeKey( $class, $component =
null ) {
94 return $this->backend->makeKey( ...func_get_args() );
98 return $this->backend->makeGlobalKey( ...func_get_args() );
104 public function lock( $key, $timeout = 6, $expiry = 6, $rclass =
'' ) {
105 return $this->backend->lock( $key, $timeout, $expiry, $rclass );
109 return $this->backend->unlock( $key );
113 return $this->backend->getLastError();
117 return $this->backend->clearLastError();
121 return $this->backend->modifySimpleRelayEvent( $event );