Currently the redis counter expects passing in the key.
Is this really needed? I was thinking we could just create the following API instead:
interface Counter {
public function increment(): Promise;
public function decrement(): Promise;
public function get(): Promise;
public function set(int $val): Promise;
}
This way we don't have to pass in the key as a string.
Currently the redis counter expects passing in the key.
Is this really needed? I was thinking we could just create the following API instead:
This way we don't have to pass in the key as a string.