README.md in redis-store-0.3.7 vs README.md in redis-store-0.3.8
- old
+ new
@@ -71,10 +71,20 @@
Merb::SessionContainer.subclasses << "Merb::RedisSession"
end
### Sinatra
-Sorry, but Sinatra application boot system [hardcode](http://github.com/sinatra/sinatra/blob/0f02bafe86f8dd9bba9ab425468cb1067caa83ff/lib/sinatra/base.rb#L785) `Rack::Session::Cookie`
+ require "sinatra"
+ require "redis-store"
+
+ class MyApp < Sinatra::Base
+ use Rack::Session::Redis
+
+ get "/" do
+ session[:visited_at] = DateTime.now.to_s # This is stored in Redis
+ "Hello, visitor."
+ end
+ end
## Rack::Cache
Provides a Redis store for HTTP caching. See [http://github.com/rtomayko/rack-cache](http://github.com/rtomayko/rack-cache)