Skip to content

Commit

Permalink
implement #destroy to be compatible with the AbstractStore interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mpd committed Feb 7, 2012
1 parent b865d8d commit f0432b9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/redis-session-store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,10 @@ def set_session(env, sid, session_data, options)
false
end


def destroy(env)
if sid = current_session_id(env)
@redis.del(prefixed(sid))
end
end
end

0 comments on commit f0432b9

Please sign in to comment.