lib/kredis/attributes.rb in kredis-0.3.0 vs lib/kredis/attributes.rb in kredis-0.3.1
- old
+ new
@@ -28,9 +28,13 @@
define_method("#{name}?") do
send(name).marked?
end
end
+ def kredis_float(name, key: nil, config: :shared, after_change: nil)
+ kredis_connection_with __method__, name, key, config: config, after_change: after_change
+ end
+
def kredis_enum(name, key: nil, values:, default:, config: :shared, after_change: nil)
kredis_connection_with __method__, name, key, values: values, default: default, config: config, after_change: after_change
end
def kredis_json(name, key: nil, config: :shared, after_change: nil)