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
198 199 200 |
# File 'lib/redis-session-store.rb', line 198 def self.dump(value) JSON.generate(value, quirks_mode: true) end |
.load(value) ⇒ Object
194 195 196 |
# File 'lib/redis-session-store.rb', line 194 def self.load(value) JSON.parse(value, quirks_mode: true) end |