@melchyore/adonis-cache
Version:
Cache package for AdonisJS V5
11 lines (10 loc) • 535 B
TypeScript
import type { CacheStoreContract, TaggedCacheContract, CacheStoresList } from '@ioc:Adonis/Addons/Cache';
import TagSet from './TagSet';
import Repository from './Repository';
export default class TaggedCache extends Repository<keyof CacheStoresList> implements TaggedCacheContract {
protected _tags: TagSet;
protected _prefix: string;
constructor(_store: CacheStoreContract, _tags: TagSet, _prefix: string);
taggedItemKey(key: string): Promise<string>;
protected itemKey(key: string): Promise<string>;
}