(appendCriteria?: string)
| 42 | } |
| 43 | |
| 44 | async keys(appendCriteria?: string) { |
| 45 | const filter = `${this.buildKey('')}${appendCriteria ? `${appendCriteria}:` : ''}`; |
| 46 | |
| 47 | return LocalCache.localCache.keys().filter((key) => key.substring(0, filter.length) === filter); |
| 48 | } |
| 49 | |
| 50 | buildKey(key: string) { |
| 51 | return `${this.module}:${key}`; |