Skip to content

Commit a34b983

Browse files
committed
delete cache
1 parent 0e9b1e8 commit a34b983

6 files changed

+3
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ logs/
2525
test-report.json
2626
content_cache/
2727
test_data/
28+
tokencache/
2829
tweetcache/
2930
twitter_cookies.json
3031
timeline_cache.json

src/providers/cache/dexScreenerData_2weMjPLLybRMMva1fM3U31goWWrCpF59CHWNhnCJ9Vyh.json

-1
This file was deleted.

src/providers/cache/holderList_2weMjPLLybRMMva1fM3U31goWWrCpF59CHWNhnCJ9Vyh.json

-1
This file was deleted.

src/providers/cache/tokenSecurity_2weMjPLLybRMMva1fM3U31goWWrCpF59CHWNhnCJ9Vyh.json

-1
This file was deleted.

src/providers/cache/tokenTradeData_2weMjPLLybRMMva1fM3U31goWWrCpF59CHWNhnCJ9Vyh.json

-1
This file was deleted.

src/providers/token.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ export class TokenProvider {
3838
// private connection: Connection,
3939
private tokenAddress: string
4040
) {
41-
this.cache = new NodeCache({ stdTTL: 300 }); // 5 minutes cache
41+
this.cache = new NodeCache({ stdTTL: 300, }); // 5 minutes cache
4242
const __filename = fileURLToPath(import.meta.url);
4343

4444
const __dirname = path.dirname(__filename);
4545

46-
this.cacheDir = path.join(__dirname, "cache");
46+
this.cacheDir = path.join(__dirname, "../../tokencache");
4747
if (!fs.existsSync(this.cacheDir)) {
4848
fs.mkdirSync(this.cacheDir);
4949
}

0 commit comments

Comments
 (0)