Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sritchie/couch-session
CouchDB Sessions for Ring.
https://github.com/sritchie/couch-session
Last synced: 2 months ago
JSON representation
CouchDB Sessions for Ring.
- Host: GitHub
- URL: https://github.com/sritchie/couch-session
- Owner: sritchie
- Created: 2011-11-01T20:19:04.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-05-24T22:02:50.000Z (over 12 years ago)
- Last Synced: 2024-06-03T22:36:05.263Z (7 months ago)
- Language: Clojure
- Homepage:
- Size: 112 KB
- Stars: 8
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Relax!
======`couch-session` lets you use CouchDB as Clojure/Ring's HTTP session
storage engine.Installation
============Add:
```clojure
[couch-session "1.1.1"]
```to dependencies in your `project.clj`.
Usage
=====`couch-session` is a drop-in replacement for Ring's native session store:
```clojure
(ns hello
(:use [couch-session.core :only (couch-store)]
[com.ashafa.clutch :only (get-database)])(def store
(get-database (assoc (com.ashafa.clutch.utils/url "sessions")
:username "username"
:password "password")))(def app
(-> ...
... other middleware ...
(wrap-session {:store (couch-store store)})
....))
```License
=======Copyright (C) 2011 Sam Ritchie
Distributed under the Eclipse Public License, the same as Clojure.