Skip to content

Commit

Permalink
Code clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dattatraya-Londhe committed Jul 4, 2024
1 parent bbc4c46 commit 0db5fe1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/routes/api/sessions/inmemory.cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,18 +79,3 @@ export class InMemoryCache implements ISessionCache {

}

// Usage example
// const cache = new InMemoryCache<string, Session>();

// cache.set('a', 1);
// console.log(cache.get('a')); // Output: 1
// console.log(cache.has('a')); // Output: true
// console.log(cache.size()); // Output: 1

// cache.delete('a');
// console.log(cache.has('a')); // Output: false

// cache.set('b', 2);
// cache.set('c', 3);
// cache.clear();
// console.log(cache.size()); // Output: 0

0 comments on commit 0db5fe1

Please sign in to comment.