Thread-safe in-memory key–value database built in Java with TTL support, background cleanup thread, and command-line interface.
- ConcurrentHashMap storage
- TTL expiration
- Background cleanup thread
- Custom exceptions
- Command parser
- CLI interface
Run Main.java in IntelliJ.
PUT key value ttl GET key DELETE key SIZE KEYS CLEAR STATUS CLEANUP HELP EXIT