UNPKG

@nasriya/cachify

Version:

A lightweight, extensible in-memory caching library for storing anything, with built-in TTL and customizable cache types.

38 lines (37 loc) 1.26 kB
import CachifyClient from "./client"; export declare class Cachify extends CachifyClient { /** * Retrieves the current debug mode status for the cache system. * * @returns {boolean} `true` if the debug mode is enabled, `false` otherwise. * @since v1.0.0 */ get debug(): boolean; /** * Sets the debug mode for the cache system. * * If the value is `true`, the cache system will log additional information about its operations. * If the value is `false`, the cache system will not log any additional information. * * @param {boolean} value - The value to set the debug mode to. * @throws {TypeError} Throws if the provided value is not a boolean. * @since v1.0.0 */ set debug(value: boolean); /** * Creates a new instance of the CachifyClient class. * * @returns {CachifyClient} A new instance of the CachifyClient class. * @since v1.0.0 */ createClient(): CachifyClient; /** * Creates a new instance of the CachifyClient class. * * @returns {CachifyClient} A new instance of the CachifyClient class. * @since v1.0.0 */ static createClient(): CachifyClient; } declare const cachify: Cachify; export default cachify;