This file contains hidden or 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
# Redis::Objects is the only requirement for this solution | |
require 'redis/objects' | |
module Redis::CacheKeys | |
class ReservedKey < Exception; end | |
def self.included(base) | |
base.class_eval do | |
include Redis::Objects unless base.included_modules.include?(Redis::Objects) |