lib/kredis/attributes.rb in kredis-1.6.1 vs lib/kredis/attributes.rb in kredis-1.7.0

- old
+ new

@@ -70,9 +70,13 @@ def kredis_counter(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) kredis_connection_with __method__, name, key, default: default, config: config, after_change: after_change, expires_in: expires_in end + def kredis_limiter(name, limit:, key: nil, config: :shared, after_change: nil, expires_in: nil) + kredis_connection_with __method__, name, key, limit: limit, config: config, after_change: after_change, expires_in: expires_in + end + def kredis_hash(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) kredis_connection_with __method__, name, key, default: default, typed: typed, config: config, after_change: after_change end def kredis_boolean(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil)