createRedisStorage
function createRedisStorage(options): RedisEntitlementsStorage;Defined in: src/storage/redis.ts:62
Create a Redis storage that stores values as JSON strings. Works on any Redis. Connection is lazy (first operation).
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
RedisStorageOptions |
Returns
Section titled “Returns”Example
Section titled “Example”import { createRedisStorage } from "@xtandard/entitlements/storage/redis";
const storage = createRedisStorage({ url: process.env.REDIS_URL, prefix: "entitlements" });