iridium
Version:
A custom lightweight ORM for MongoDB designed for power-users
16 lines (15 loc) • 553 B
TypeScript
/// <reference types="bluebird" />
import * as Bluebird from "bluebird";
import { Cache } from "../Cache";
/**
* A cache implementation which stores documents in an in-memory cache.
*
* Be aware that this is an incredibly simplistic implementation which doesn't manage
* memory usage at all and is very likely NOT suitable for production use.
*/
export declare class MemoryCache implements Cache {
private cache;
set<T>(key: string, value: T): Bluebird<T>;
get<T>(key: string): Bluebird<T>;
clear(key: string): Bluebird<boolean>;
}