16 public function makeKey( $prefix, $internals, $entity ) {
17 $globality = $entity->isGlobal() ?
'global' :
'local';
19 [ $globality, ...$prefix, ...$internals, ...$entity->getComponents() ]
24 public function incr( array $values, $ttl ) {
25 foreach ( $values as $key => $value ) {
26 if ( !isset( $this->data[$key] ) ) {
27 $this->data[$key] = [ 0, $ttl ];
29 $this->data[$key][0] += $value;