Sign inSign up

evrentan/simple-cache-app

By evrentan

•Updated over 1 year ago

A lightweight Java app demonstrating the use of WeakHashMap for memory-efficient caching via CLI.

Image
Developer tools
0

143

evrentan/simple-cache-app repository overview

The Simple Cache App is a lightweight Java-based console application that demonstrates how WeakHashMap can be used to build memory-efficient caches. It provides a terminal-based interface to add, retrieve, and manage cache entries while observing how Java garbage collection behaves with weak references.

To run the image: docker run -it --rm evrentan/simple-cache-app

You can also pass optional arguments:

• --ttl – Set cache Time-To-Live in milliseconds (default: 60000)

• --nogc – Disable explicit System.gc() calls

• --nodebug – Run without debug logs

Tag summary

Content type

Image

Digest

sha256:e62112081…

Size

224.7 MB

Last updated

over 1 year ago

docker pull evrentan/simple-cache-app