https://github.com/erkobridee/ts-lru-cache-ttl-impl
Least Recently Used (LRU) cache with Time-to-Live (TTL) support implemented in TypeScript
https://github.com/erkobridee/ts-lru-cache-ttl-impl
lru-cache ttl ttl-cache typescript
Last synced: 9 months ago
JSON representation
Least Recently Used (LRU) cache with Time-to-Live (TTL) support implemented in TypeScript
- Host: GitHub
- URL: https://github.com/erkobridee/ts-lru-cache-ttl-impl
- Owner: erkobridee
- License: mit
- Created: 2024-06-11T14:10:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T17:14:55.000Z (over 1 year ago)
- Last Synced: 2024-10-24T00:47:22.955Z (over 1 year ago)
- Topics: lru-cache, ttl, ttl-cache, typescript
- Language: TypeScript
- Homepage:
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ts-lru-cache-ttl-impl
Least Recently Used (LRU) cache with Time-to-Live (TTL) support [implemented in TypeScript](/src/lru-cache.ts)
## dev dependencies
```
npm i -D \
@types/jest \
@types/node \
esbuild \
typescript \
vitest
```
## References
- [LRU Cache Data Structure | Interview Cake](https://www.interviewcake.com/concept/java/lru-cache)
- [LRU Cache Implementation | enjoy algorithms](https://www.enjoyalgorithms.com/blog/implement-least-recently-used-cache)
- [Complete Tutorial on LRU Cache with Implementations | GeeksforGeeks](https://www.geeksforgeeks.org/lru-cache-implementation/)
- [LRU Cache | Redis](https://redis.io/glossary/lru-cache/)