Skip to main content

Implementing a Store

Implement a custom cache store for @unkey/cache by following the Store interface. Build adapters for Redis, DynamoDB, or any backend you need.
1 min read

A store is a common interface for storing, reading and deleting key-value pairs. The store implementation is responsible for cleaning up expired data on its own.

You can build your own store by implementing the following interface:

Store
Entry