Sign inSign up

elfido/pcache

By elfido

•Updated over 7 years ago

Pseudo cache demo

Image
0

350

elfido/pcache repository overview

⁠PCache... a pseudo cache

K-V Object store

⁠Docker image

docker run --rm -d -p 8280:8280 --name mycache elfido/pcache:0.3.0

⁠CLI Start options

  • maxSize, Max number of items to keep in the cache
  • maxExpiration Expiry max seconds
  • defaultExpiry Default expiration if none is provided
  • port Web application port

⁠Web API

  • GET /prometheus Prometheus stats
  • GET /stats Basic stats
  • DELETE /storage Clears all objects
  • GET /storage/{id} Retrieves an object
  • POST /storage/{id} Stores an object, expiry query string defines the TTL in seconds.

Metrics

  • Cache hits
  • Cache miss
  • Set/Gets ops
  • Purged item counter
  • Avg expiration
  • Fetch time
  • Collection time

Others:

  • Stream store
  • Find hot keys

Playgrounds:

  • npm cache
  • upcoming

Tag summary

Content type

Image

Digest

Size

9 MB

Last updated

over 7 years ago

docker pull elfido/pcache:0.3.0