npm.io
3.0.8 • Published 1 year ago

@types/hapi__catbox-memcached

Licence
MIT
Version
3.0.8
Deps
4
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/hapi__catbox-memcached

Summary

This package contains type definitions for @hapi/catbox-memcached (https://github.com/hapijs/catbox-memcached#readme).

Details

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

index.d.ts

import { CacheKey, ClientApi, ClientOptions } from "@hapi/catbox";

declare namespace CatboxMemcached {
    interface Options extends ClientOptions {
        host?: string | undefined;
        port?: number | undefined;
        location?: string | undefined;
        timeout?: number | undefined;
        idle?: number | undefined;
    }
}

interface CatboxMemcached<T> extends ClientApi<T> {}

declare class CatboxMemcached<T> implements ClientApi<T> {
    constructor(options?: CatboxMemcached.Options);
    generateKey(key: CacheKey): string;
}

export = CatboxMemcached;

Additional Details

Credits

These definitions were written by Avery Fay.