@types/cache-manager-redis-store
TypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Installation

npm install --save @types/cache-manager-redis-store

Summary

This package contains type definitions for cache-manager-redis-store (https://github.com/dabroek/node-cache-manager-redis-store).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cache-manager-redis-store.

index.d.ts

import { Cache, CacheOptions, Store, StoreConfig } from "cache-manager";
import * as Redis from "redis";

declare const methods: CacheManagerRedisStore.RedisStoreConstructor;
export = methods;
export {};

declare module "cache-manager" {
    function caching(IConfig: StoreConfig & CacheOptions): CacheManagerRedisStore.RedisCache;
}

declare namespace CacheManagerRedisStore {
    interface RedisCache extends Cache {
        store: RedisStore;
    }

    interface RedisStore extends Store {
        name: "redis";
        getClient: () => Redis.RedisClient;
        isCacheableValue: (value: any) => boolean;
    }

    interface RedisStoreConstructor {
        create: (options?: Redis.ClientOpts) => RedisStore;
    }
}

Additional Details

Credits

These definitions were written by Eduardo Cancino.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/cache-manager-redis-store

Weekly Downloads

75,687

Version

2.0.4

License

MIT

Unpacked Size

4.35 kB

Total Files

5

Last publish

Collaborators

  • types