UNPKG

iridium

Version:

A custom lightweight ORM for MongoDB designed for power-users

16 lines (15 loc) 559 B
/// <reference types="bluebird" /> import { Cache } from "../Cache"; import * as Bluebird from "bluebird"; /** * A cache implementation which does not cache any received documents * and returns nothing when requested - mimicking an empty cache. * * This is the default cache used if one is not supplied and should * not impose any significant performance overhead. */ export declare class NoOpCache implements Cache { set<T>(key: string, object: T): Bluebird<T>; get<T>(key: string): Bluebird<void>; clear(key: string): Bluebird<boolean>; }