Class: RedisSessionStore::JsonSerializer
- Inherits:
-
Object
- Object
- RedisSessionStore::JsonSerializer
- Defined in:
- lib/redis-session-store.rb
Overview
Uses built-in JSON library to encode/decode session
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.dump(value) ⇒ Object
206 207 208 |
# File 'lib/redis-session-store.rb', line 206 def self.dump(value) JSON.generate(value, quirks_mode: true) end |
.load(value) ⇒ Object
202 203 204 |
# File 'lib/redis-session-store.rb', line 202 def self.load(value) JSON.parse(value, quirks_mode: true) end |