Felipe Lessa
d23c5ac4c6
Use a HashMap on acid-state implementation + Travis.
...
Also dial back on maximum heap size as 2 GiB with -F1.5 still makes OOM
kill the process on Travis.
2015-06-01 02:06:36 -03:00
Felipe Lessa
0cca9cd086
Use HashMap for SessionMap.
...
It's a bit faster and uses a bit less memory.
2015-05-31 23:09:02 -03:00
Felipe Lessa
16c4248355
More GHC 7.8 fixes (import mempty, derive Typeable).
2015-05-31 14:36:33 -03:00
Felipe Lessa
f0e1005f18
Add Applicative imports for GHC 7.8.
2015-05-31 12:57:52 -03:00
Felipe Lessa
3e33c58af0
Generalize session data (huge commit).
2015-05-31 11:07:23 -03:00
Felipe Lessa
83faccf3f9
Use insertLookupWithKey when needing old value.
...
updateLookupWithKey returns original value only if it was deleted. If
it was updated, it returns the updated value. On both acid-state and
MockStorage we want the old value, though.
Now all acid-state tests are green once more.
MockStorage tests were already green because MockStorage does not
mantain a cached mapping of auth IDs to session IDs.
2015-05-28 02:03:12 -03:00
Felipe Lessa
8746b5eb4f
Fix acid-state's implementation of {insert,replace}Session.
2015-05-28 01:28:07 -03:00
Felipe Lessa
82b7ebdca4
Fix example on how to use acid-state backend.
2015-05-28 01:27:40 -03:00
Felipe Lessa
c2bd20cd56
Add acid-state to main README, include better example of usage.
2015-05-25 22:09:25 -03:00
Felipe Lessa
bac54a5c70
New serversession-backend-acid-state package.
2015-05-25 21:31:47 -03:00