Changes between 1.0.0 and 1.1.0
Blocking Deref for Futures
Futures returned by async Spyglass operations now implement "blocking dereferencing":
they can be dereferenced with a timeout and default value, just like futures created
clojure.core/future and similar.
Contributed by Joseph Wilk.
Support For Configurable Connections
clojurewerkz.spyglass.client/bin-connection-factory provide a Clojuric
way of instantiating connection factories. Those factories, in turn, can be
passed to new arities of
clojurewerkz.spyglass.client/bin-connection to control failure mode,
default transcoder and so on:
(ns my.service (:require [clojurewerkz.spyglass.client :as c])) (c/text-connection "127.0.0.1:11211" (c/text-connection-factory :failure-mode :redistribute))
clojurewerkz.spyglass.cache now provides a
clojure.core.cache implementation on top of
(ns my.service (:require [clojurewerkz.spyglass.client :as sg] [clojurewerkz.spyglass.cache :as sc] [clojure.core.cache :as cc])) (let [client (sg/text-connection) cache (sc/sync-spyglass-cache-factory)] (cc/has? cache "a-key") (cc/lookup cache "a-key"))
SyncSpyglassCache uses synchronous operations from
clojurewerkz.spyglass.client. Asynchronous implementation
that returns futures will be added in the future.
SpyMemcached has been upgraded to
Improved Couchbase Support
clojurewerkz.spyglass.couchbase/connection is a new function that connects to Couchbase with the given
bucket and credentials. It returns a client that regular
clojurewerkz.spyglass.memcached functions can
Clojure 1.4 By Default
Spyglass now depends on
1.4.0. It is still compatible with Clojure 1.3 and if your
on 1.3, it will be used, but 1.4 is the default now.
We encourage all users to upgrade to 1.4, it is a drop-in replacement for the majority of projects out there.
Recompiled for JDK 6
Spyglass 1.0.1 is compiled for JDK 6.
Changes between 1.0.0-rc2 and 1.0.0
Documentation guides were improved.
Continuous Integration Against Couchbase
We now run Continuous Integration against several versions of Couchbase Server.
Changes between 1.0.0-rc1 and 1.0.0-rc2
Future results now can be dereferenced
Many Spyglass functions return futures. Starting with the 1.0.0-rc2 release, it is now possible to
Changes between 1.0.0-beta1 and 1.0.0-rc1
Spyglass now has documentation guides at clojurememcached.info.
- get, async get
- multi-get (bulk get), async multi-get
- add, incr, decr (need to use custom transcoders because of the SpyMemcached idiosyncracies)
- gets, CAS, async CAS