Skip to content

Simple and stupid clojure wrapper around Caffeine Cache

Notifications You must be signed in to change notification settings

willcohen/cloffeine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple clojure wrapper around https://github.com/ben-manes/caffeine cache.

Usage:

(require '[cloffeine.core :as cc])
(def settings (cc/map->CacheSettings {:maximumSize 5 :expireAfterWrite 3}))
(def cache (cc/make-cache settings))
(cc/put cache :a 1)
(cc/get-if-present cache :a)

Todo:

  • Loading/async loading
  • Refresh
  • Weight functions
  • Listeners
  • get rid of map->CacheSettings
  • Documentation

About

Simple and stupid clojure wrapper around Caffeine Cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published