Created
May 9, 2019 20:48
-
-
Save DanRioDev/5063a6707adfa02c5d6af578ae12fdd8 to your computer and use it in GitHub Desktop.
Google AppEngine Memcache Example in Clojure
This file contains hidden or 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
(:import (com.google.appengine.api.memcache MemcacheService MemcacheServiceFactory)) | |
(def ^MemcacheService syncCache (MemcacheServiceFactory/getMemcacheService)) | |
(.put syncCache "listUserChannels5648348291792896" {:csid "" | |
:unread 7}) | |
(log/info (.contains syncCache "key")) | |
(log/info (class (.get syncCache "listUserChannels5648348291792896"))) | |
(log/info (.get syncCache "listUserChannels5648348291792896")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Precisa rodar no emulador local:
lein pedestal uberwar
jar -vxf
no arquivoappengine-web.xml
para otarget/WEB-INF/
sem as variáveis de ambientetarget/
e execute/Applications/google-cloud-sdk/bin/java_dev_appserver.sh .