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

3.0.3 • Public • Published

Installation

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

Summary

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

Details

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

index.d.ts

import { Cache, CacheOptions, Store, StoreConfig } from "cache-manager";

interface CacheManagerMemcachedStoreOptions {
    autodiscover?: boolean;
    bufferBeforeError?: number;
    disabled?: boolean;
    hosts?: string[] | null;
    reconnect?: boolean;
    onNetError?: (error: Error) => void;
    queue?: boolean;
    netTimeout?: number;
    backoffLimit?: number;
    maxValueSizes?: number;
}

interface CacheManagerMemcachedStoreConfig {
    store: CacheManagerMemcachedStoreConstructor;
    options?: CacheManagerMemcachedStoreOptions | undefined;
}

interface CacheManagerMemcachedStoreConstructor {
    create: (config: CacheManagerMemcachedStoreConfig) => Store;
}

declare module "cache-manager" {
    function caching(IConfig: CacheManagerMemcachedStoreConfig | (StoreConfig & CacheOptions)): Cache;
}

declare const methods: CacheManagerMemcachedStoreConstructor;
export = methods;
export {};

Additional Details

Credits

These definitions were written by James Wigley.

Readme

Keywords

none

Package Sidebar

Install

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

Weekly Downloads

144

Version

3.0.3

License

MIT

Unpacked Size

4.64 kB

Total Files

5

Last publish

Collaborators

  • types