@daiso-tech/core
Version:
The library offers flexible, framework-agnostic solutions for modern web applications, built on adaptable components that integrate seamlessly with popular frameworks like Next Js.
40 lines (39 loc) • 999 B
TypeScript
/**
* @module Cache
*/
/**
*
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
* @group Errors
*/
export declare class CacheError extends Error {
constructor(message: string, cause?: unknown);
}
/**
* The error is thrown when attempting to increment or decrement a key that is not of number type.
*
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
* @group Errors
*/
export declare class TypeCacheError extends CacheError {
constructor(message: string, cause?: unknown);
}
/**
* The error is thrown when a key is not found
*
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
* @group Errors
*/
export declare class KeyNotFoundCacheError extends CacheError {
constructor(message: string, cause?: unknown);
}
/**
*
* IMPORT_PATH: `"@daiso-tech/core/cache/contracts"`
* @group Errors
*/
export declare const CACHE_ERRORS: {
readonly Base: typeof CacheError;
readonly Type: typeof TypeCacheError;
readonly KeyNotFound: typeof KeyNotFoundCacheError;
};