The expression yield $this->backend->wr...ta, $ttl ?? $this->ttl) returns the type Generator which is incompatible with the documented return type boolean.
The expression yield $this->backend->remove($this->key($key)) returns the type Generator which is incompatible with the documented return type boolean.