Permalink
Browse files

Update master

  • Loading branch information...
1 parent 2c2e409 commit e35f2ed10a8748eab09ec9fd09befdfdf1e364a5 @SamSaffron committed Jul 16, 2012
Showing with 18 additions and 0 deletions.
  1. +18 −0 Ruby/README.md
View
@@ -47,6 +47,24 @@ class MyApp < Sinatra::Base
end
```
+## Storage
+
+By default, rack-mini-profiler stores its results in a memory store:
+
+```ruby
+# our default
+Rack::MiniProfiler.config.storage = Rack::MiniProfiler::MemoryStore
+```
+
+There are 2 other available storage engines, `RedisStore` and `FileStore`.
+
+MemoryStore is stores results in a processes heap - something that does not work well in a multi process environment.
+FileStore stores results in the file system - something that may not work well in a multi machine environment.
+
+Additionally you may implement an AbstractStore for your own provider.
+
+Rails hooks up a FileStore for all environments.
+
## Running the Specs
```

0 comments on commit e35f2ed

Please sign in to comment.