-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor the lib and break to v3 (#35)
* Refactor the session `AutoCreate` behaviour. This is a breaking change. * feat: refactor tests * fix: update code comments * refactor: remove Commit() pattern and introduce setMulti to store interface - remove Commit() pattern, Set and SetMulti should immediately set the values to backend. - rename LoadValues() to CacheAll() and update cache on Set, SetMulti, Delete and Clear calls. * fix: update goredis package to implement latest store interface * feat: v3 refactor - Update store interface to take session ID instead of returning on Create() - Introduce hooks to generate and validate session ID in manager. By default use alpha-numeric 32 length ID. - Rename get and set cookie register method to `SetCookieHooks`. - Ditch ErrFieldNotFound error and get/set supposed to return Nil instead. * refactor: conv package to v3 spec * feat: migrate memory store to v3 spec * refactor: redis package to v3 spec * refactor: securecookie package to v3 spec * refactor: postgres package to v3 spec * fix: Clear() should only clear the values and not session * feat: add Destroy() which deletes the dession from backend * chore: update README and lib comments * fix: incorrect store Delete() method implementation * fix: update store version to v3 * fix: update examples to v3 * fix: refactor examples module structure --------- Co-authored-by: Kailash Nadh <kailash@nadh.in>
- Loading branch information
1 parent
205c1e0
commit a3b0aa7
Showing
41 changed files
with
2,808 additions
and
3,963 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.