This middleware will prepend a prefix to the key. This is useful, because it means the S3 adapter doesn't have to worry about the prefix. It also means that prefixing is now compatible with any adapter.
This PR includes a breaking change to the S3 adapter. The prefix option is no longer accepted by the S3 adapter.
In previous versions, using the :prefix would still return unprefixed keys from the list! and stat functions. That's no longer the case, which means the result of those functions can be used to interact with the store.
This middleware will prepend a prefix to the key. This is useful, because it means the S3 adapter doesn't have to worry about the prefix. It also means that prefixing is now compatible with any adapter.
This PR includes a breaking change to the S3 adapter. The
prefix
option is no longer accepted by the S3 adapter.In previous versions, using the
:prefix
would still return unprefixed keys from thelist!
andstat
functions. That's no longer the case, which means the result of those functions can be used to interact with the store.