Class: Blendris::RedisString
- Defined in:
- lib/blendris/string.rb
Overview
RedisString is a wrapper to the Redis string data type.
Instance Attribute Summary
Attributes inherited from RedisNode
Class Method Summary collapse
Methods inherited from RedisNode
#clear, #exists?, #get, #initialize, #notify_changed, #rename, #set, #type
Methods included from RedisAccessor
#generate_key, #in_temporary_set, redis, #redis
Methods included from Utils
#blank, #camelize, #constantize, #pairify, #sanitize_key
Constructor Details
This class inherits a constructor from Blendris::RedisNode
Class Method Details
.cast_from_redis(value, options = {}) ⇒ Object
13 14 15 |
# File 'lib/blendris/string.rb', line 13 def self.cast_from_redis(value, = {}) value end |
.cast_to_redis(value, options = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/blendris/string.rb', line 7 def self.cast_to_redis(value, = {}) raise TypeError.new("#{value.class.name} is not a string") unless value.kind_of? String value end |