Created
February 25, 2022 14:18
-
-
Save pjstadig/ceda404c0f750ec09b449a58c3aa45de to your computer and use it in GitHub Desktop.
Protocol + client + multimethod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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])) | |
(defmulti connect :backend) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment