srinathgs / couchbasestore Goto Github PK
View Code? Open in Web Editor NEWGorilla's Session store for Couchbase
Home Page: http://godoc.org/github.com/srinathgs/couchbasestore
License: Other
Gorilla's Session store for Couchbase
Home Page: http://godoc.org/github.com/srinathgs/couchbasestore
License: Other
go get github.com/srinathgs/couchbasestore
# github.com/couchbaselabs/go-couchbase
../../couchbaselabs/go-couchbase/streaming.go:33:3: error: unknown field ‘KeepAlive’ in ‘net.Dialer’
KeepAlive: 30 * time.Second,
^
I set a key/value pair in the session, and when I save it , it shows
res=MCResponse status=SUCCESS, opcode=GET, opaque=0, msg: ,err=EOF
I tried to retrieve the key/value pair in another URL, I can't get it.
that means save failed.
I used couchbase locally.
var store, _ = couchbasestore.NewCouchStore("http://Administrator:[email protected]:8091","default","session","/",3600,[]byte("wxf-supersecret-key"))
Since couchbase treats TTL's shorter than 30 days as relative time, and longer than 30 days as time since unix epoch, couchbase deletes the session immediately if a time longer than 30 days is set. There is no documentation, and no code to handle this case.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.