You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,25 @@ Since each situation is different, the manager gives you several options which c
125
125
-`SAVE_ON_CHANGE`: every time `session.setAttribute()` or `session.removeAttribute()` is called the session will be saved. __Note:__ This feature cannot detect changes made to objects already stored in a specific session attribute. __Tradeoffs__: This option will degrade performance slightly as any change to the session will save the session synchronously to Redis.
126
126
-`ALWAYS_SAVE_AFTER_REQUEST`: force saving after every request, regardless of whether or not the manager has detected changes to the session. This option is particularly useful if you make changes to objects already stored in a specific session attribute. __Tradeoff:__ This option make actually increase the liklihood of race conditions if not all of your requests change the session.
127
127
128
+
129
+
Testing/Example App
130
+
-------------------
131
+
132
+
For full integration testing as well as a demonstration of how to use the session manager, this project contains an example app and a virtual server setup via Vagrant and Chef.
133
+
134
+
To get the example server up and running, you'll need to do the following:
135
+
1. Download and install Virtual Box (4.3.12 at the time of this writing) from https://www.virtualbox.org/wiki/Downloads
136
+
1. Download and install the latest version (1.6.3 at the time of this writing) of Vagrant from http://www.vagrantup.com/downloads.html
137
+
1. Install Ruby, if necessary.
138
+
1. Install Berkshelf with `gem install berkshelf`
139
+
1. Install the Vagrant Berkshelf plugin with `vagrant plugin install vagrant-berkshelf --plugin-version '>= 2.0.1'`
140
+
1. Install the Vagrant Cachier plugin for _speed_ with `vagrant plugin install vagrant-cachier`
141
+
1. Install the Vagrant Omnibus plugin with `vagrant plugin install vagrant-omnibus`
142
+
1. Install the required Ruby gems with `PROJECT_ROOT/bundle install`
143
+
1. Boot the virtual machine with `PROJECT_ROOT/vagrant up`
0 commit comments