Added Cache.deletePrefix(prefix). This lets you delete all keys with a given prefix from the cache. deletePrefix will throw an error if any of the keys are not serialized to a string. They can either already be strings, or you can use mapKey to convert them into strings if you want to use this method.
Using this method with replication enabled will result in this new type of replication event:
@databases/cache (1.0.0 → 1.1.0)
New Features
Added
Cache.deletePrefix(prefix)
. This lets you delete all keys with a given prefix from the cache.deletePrefix
will throw an error if any of the keys are not serialized to a string. They can either already be strings, or you can usemapKey
to convert them into strings if you want to use this method.Using this method with replication enabled will result in this new type of replication event:
You can now pass multiple keys to
Cache.delete(...keys)
to more efficiently delete multiple keys in a single call.Passing multiple keys with replication enabled will result in this new type of replication event:
Packages With No Changes
The following packages have no user facing changes, so won't be released:
Edit changelogs