Skip to content

Instantly share code, notes, and snippets.

@pjstadig
Created February 25, 2022 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjstadig/c4ced826fd0d62b6fd744a5d60d9e22e to your computer and use it in GitHub Desktop.
Save pjstadig/c4ced826fd0d62b6fd744a5d60d9e22e to your computer and use it in GitHub Desktop.
Protocol + client
(ns stadig.storage.protocol
(:refer-clojure :exclude [get]))
(defprotocol IStorage
(get [this bucket key])
(put [this bucket key value])
(delete [this bucket key])
(close [this]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment