fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@pushrocks/smartcache',
|
||||
version: '1.0.15',
|
||||
description: 'cache things in smart ways'
|
||||
}
|
@ -1 +1 @@
|
||||
export * from './smartcache.classes.smartcache';
|
||||
export * from './smartcache.classes.smartcache.js';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './smartcache.plugins';
|
||||
import * as plugins from './smartcache.plugins.js';
|
||||
import { SmartError } from '@pushrocks/smarterror';
|
||||
|
||||
export interface ICacheMap {
|
||||
@ -12,7 +12,7 @@ export interface ICacheMap {
|
||||
export class CacheManager {
|
||||
private _cacheMap: ICacheMap = {};
|
||||
|
||||
cacheExists(identifierArg): boolean {
|
||||
cacheExists(identifierArg: string): boolean {
|
||||
if (this._cacheMap[identifierArg]) {
|
||||
return true;
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as plugins from './smartcache.plugins';
|
||||
import { CacheManager } from './smartcache.classes.cachemanager';
|
||||
import * as plugins from './smartcache.plugins.js';
|
||||
import { CacheManager } from './smartcache.classes.cachemanager.js';
|
||||
|
||||
export class SmartCache {
|
||||
private _cacheManager = new CacheManager();
|
||||
|
Reference in New Issue
Block a user