class RedisCacheAdapter
implements ICacheAdapter
import { RedisCacheAdapter } from "https://deno.land/x/harmony@v2.6.0/src/cache/redis.ts";
Redis Cache Adapter for using Redis as a cache-provider.
Constructors
new
RedisCacheAdapter(options: RedisConnectOptions)Methods
private
_startExpireInterval(): void_checkReady(): Promise<void>
array<T>(cacheName: string): Promise<T[] | undefined>
delete(cacheName: string, ...keys: string[]): Promise<boolean>
deleteCache(cacheName: string): Promise<boolean>
get<T>(cacheName: string, key: string): Promise<T | undefined>
keys(cacheName: string): Promise<string[] | undefined>
set<T>(): Promise<void>
cacheName: string,
key: string,
value: T,
expire?: number,
size(cacheName: string): Promise<number | undefined>