21 $this->cache = $cache;
28 public function makeKey( $prefix, $internals, $entity ) {
29 if ( $entity->isGlobal() ) {
30 return $this->cache->makeGlobalKey(
31 ...$prefix, ...$internals, ...$entity->getComponents() );
33 return $this->cache->makeKey(
34 ...$prefix, ...$internals, ...$entity->getComponents() );
38 public function incr( array $values, $ttl ) {
39 foreach ( $values as $key => $value ) {
40 $this->cache->incrWithInit(
50 public function delete( array $keys ) {
54 public function query( array $keys ) {
55 return $this->cache->getMulti( $keys );
Class representing a cache/ephemeral data store.
const WRITE_BACKGROUND
If supported, do not block on write operation completion; instead, treat writes as succesful based on...