Skip to content

Commit 345dcd5

Browse files
author
khanh2906
committed
update readme
1 parent 2098150 commit 345dcd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const cache = new CacheFile({
4747
autoCompress: true, // Automatically compress data
4848
log: true, // Enable logging
4949
});
50+
cache.setup()
5051

5152
// Store data in the cache
5253
await cache.set('user:123', JSON.stringify({ name: 'John Doe' }), { expire: 60000 });
@@ -84,6 +85,9 @@ Creates a new instance of BAMIMI Cache.
8485

8586
### **Methods**
8687

88+
#### **`setup()`**
89+
Initialize configuration files
90+
8791
#### **`set(key, content, options)`**
8892
Stores data in the cache.
8993

0 commit comments

Comments
 (0)