Sign inSign up

johejo/cacheapi

By johejo

•Updated over 5 years ago

An alternative BigCache HTTP Server

Image
0

343

johejo/cacheapi repository overview

⁠cacheapi

An alternative BigCache HTTP Server⁠

Build Status GoDoc Docker Cloud Automated build Docker Cloud Build Status

⁠Web API document

https://johejo.github.io/cacheapi/rest/index.html⁠

⁠Installing

go get -u github.com/johejo/cacheapi/cmd/cacheapi

⁠CLI

Usage of cacheapi

  -clearWindow duration
        Interval between removing expired entries (clean up).
  -hardMaxCacheSize int
        HardMaxCacheSize is a limit for cache size in MB. Cache will not allocate more memory than this limit.
  -host string
        The hostname to listen on.
  -lifeWindow duration
        Time after which entry can be evicted. (default 10m0s)
  -maxEntrySize int
        Max size of entry in bytes. (default 500)
  -maxInWindow int
        Max number of entries in life window. (default 600000)
  -port int
        The port to listen on. (default 8888)
  -shards int
        Number of cache shards, value must be a power of two. (default 1024)
  -verbose
        Verbose mode prints information about new memory allocation.
  -version
        Print server version.

⁠Docker Image

Docker Hub⁠

docker run --rm -d -p 8888:8888 johejo/cacheapi

⁠License

MIT

Tag summary

Content type

Image

Digest

Size

5.5 MB

Last updated

over 5 years ago

docker pull johejo/cacheapi
⌂ 换网址