Closed fedyna-k closed 2 months ago
Changed file name to cache.ts, added all CRUD methods and added declaration file for types.
src/@types/cache.d.ts
// Declares a type in d.ts file. declare type KeyValue = Record<string, string>;
src/handler/cache.ts
// Note that there is no need to import // declaration file because it's in the @types folder const kv: KeyValue = {};
All restful DB operations defined by CRUD are implemented (but not tested for now) :
Cache.add
Cache.find
Cache.edit
Cache.remove
Abstract
Changed file name to cache.ts, added all CRUD methods and added declaration file for types.
Declaration example
src/@types/cache.d.ts
src/handler/cache.ts
CRUD
All restful DB operations defined by CRUD are implemented (but not tested for now) :
Cache.add
Cache.find
Cache.edit
Cache.remove