3.0.3 • Published 6 months ago

@types/cache-manager-memcached-store v3.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for cache-manager-memcached-store 3.0
// Project: https://github.com/theogravity/node-cache-manager-memcached-store
// Definitions by: James Wigley <https://github.com/jwigley>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { Cache, Store, StoreConfig, CacheOptions } 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.