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