Method: Rack::MiniProfiler::RedisStore#load
- Defined in:
- lib/mini_profiler/storage/redis_store.rb
#load(id) ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/mini_profiler/storage/redis_store.rb', line 25 def load(id) key = prefixed_id(id) raw = redis.get key begin # rubocop:disable Security/MarshalLoad Marshal.load(raw) if raw # rubocop:enable Security/MarshalLoad rescue # bad format, junk old data redis.del key nil end end |