Skip to content

Commit 12368ee

Browse files
committed
Add list and set expiration to attributes
1 parent 4577850 commit 12368ee

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/kredis/attributes.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ def kredis_json(name, key: nil, default: nil, config: :shared, after_change: nil
4444
kredis_connection_with __method__, name, key, default: default, config: config, after_change: after_change, expires_in: expires_in
4545
end
4646

47-
def kredis_list(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil)
48-
kredis_connection_with __method__, name, key, default: default, typed: typed, config: config, after_change: after_change
47+
def kredis_list(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil, expires_in: nil)
48+
kredis_connection_with __method__, name, key, default: default, typed: typed, config: config, after_change: after_change, expires_in: expires_in
4949
end
5050

51-
def kredis_unique_list(name, limit: nil, key: nil, default: nil, typed: :string, config: :shared, after_change: nil)
52-
kredis_connection_with __method__, name, key, default: default, limit: limit, typed: typed, config: config, after_change: after_change
51+
def kredis_unique_list(name, limit: nil, key: nil, default: nil, typed: :string, config: :shared, after_change: nil, expires_in: nil)
52+
kredis_connection_with __method__, name, key, default: default, limit: limit, typed: typed, config: config, after_change: after_change, expires_in: expires_in
5353
end
5454

55-
def kredis_set(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil)
56-
kredis_connection_with __method__, name, key, default: default, typed: typed, config: config, after_change: after_change
55+
def kredis_set(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil, expires_in: nil)
56+
kredis_connection_with __method__, name, key, default: default, typed: typed, config: config, after_change: after_change, expires_in: expires_in
5757
end
5858

59-
def kredis_ordered_set(name, limit: nil, default: nil, key: nil, typed: :string, config: :shared, after_change: nil)
60-
kredis_connection_with __method__, name, key, default: default, limit: limit, typed: typed, config: config, after_change: after_change
59+
def kredis_ordered_set(name, limit: nil, default: nil, key: nil, typed: :string, config: :shared, after_change: nil, expires_in: nil)
60+
kredis_connection_with __method__, name, key, default: default, limit: limit, typed: typed, config: config, after_change: after_change, expires_in: expires_in
6161
end
6262

6363
def kredis_slot(name, key: nil, config: :shared, after_change: nil)

0 commit comments

Comments
 (0)