 ;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 (ns containium.ring-session-cassandra
+  "This namespace contains the Containium system offering a Ring
+  SessionStore backed by Cassandra and Nippy."
   (:require [ring.middleware.session.store :refer (SessionStore read-session)]
             [taoensso.nippy :refer (freeze thaw)]
             [clojure.core.cache :refer (ttl-cache-factory)]



(defn- bytebuffer->bytes
  [^ByteBuffer bb]
  (if (.hasArray bb)
    (Arrays/copyOfRange (.array bb)

;;; Helper functions.

(defn- ->bytebuffer
  "Converts some basic type to a ByteBuffer. Currently supported types
  are: String, Long, byte array and ByteBuffer."
  [primitive]
  (condp instance? primitive
    String
