Module: Tapioca::Dsl::Compilers::Extensions::Kredis
- Defined in:
- lib/tapioca/dsl/extensions/kredis.rb
Instance Attribute Summary collapse
-
#__tapioca_kredis_types ⇒ Object
readonly
Returns the value of attribute __tapioca_kredis_types.
Instance Method Summary collapse
- #kredis_boolean(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_counter(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_datetime(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_decimal(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_enum(name, key: nil, values:, default:, config: :shared, after_change: nil) ⇒ Object
- #kredis_flag(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_float(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_hash(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
- #kredis_integer(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_json(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_list(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
- #kredis_proxy(name, key: nil, config: :shared, after_change: nil) ⇒ Object
- #kredis_set(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
- #kredis_slot(name, key: nil, config: :shared, after_change: nil) ⇒ Object
- #kredis_slots(name, available:, key: nil, config: :shared, after_change: nil) ⇒ Object
- #kredis_string(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
- #kredis_unique_list(name, limit: nil, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
Instance Attribute Details
#__tapioca_kredis_types ⇒ Object (readonly)
Returns the value of attribute __tapioca_kredis_types.
15 16 17 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 15 def __tapioca_kredis_types @__tapioca_kredis_types end |
Instance Method Details
#kredis_boolean(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
98 99 100 101 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 98 def kredis_boolean(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_counter(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
88 89 90 91 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 88 def kredis_counter(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Counter") super end |
#kredis_datetime(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
37 38 39 40 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 37 def kredis_datetime(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_decimal(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
32 33 34 35 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 32 def kredis_decimal(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_enum(name, key: nil, values:, default:, config: :shared, after_change: nil) ⇒ Object
52 53 54 55 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 52 def kredis_enum(name, key: nil, values:, default:, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::Enum", values: values) super end |
#kredis_flag(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
42 43 44 45 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 42 def kredis_flag(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Flag") super end |
#kredis_float(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
47 48 49 50 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 47 def kredis_float(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_hash(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
93 94 95 96 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 93 def kredis_hash(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::Hash") super end |
#kredis_integer(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
27 28 29 30 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 27 def kredis_integer(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_json(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
57 58 59 60 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 57 def kredis_json(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_list(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
62 63 64 65 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 62 def kredis_list(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::List") super end |
#kredis_proxy(name, key: nil, config: :shared, after_change: nil) ⇒ Object
17 18 19 20 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 17 def kredis_proxy(name, key: nil, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::Proxy") super end |
#kredis_set(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
73 74 75 76 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 73 def kredis_set(name, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::Set") super end |
#kredis_slot(name, key: nil, config: :shared, after_change: nil) ⇒ Object
78 79 80 81 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 78 def kredis_slot(name, key: nil, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::Slots") super end |
#kredis_slots(name, available:, key: nil, config: :shared, after_change: nil) ⇒ Object
83 84 85 86 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 83 def kredis_slots(name, available:, key: nil, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::Slots") super end |
#kredis_string(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) ⇒ Object
22 23 24 25 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 22 def kredis_string(name, key: nil, default: nil, config: :shared, after_change: nil, expires_in: nil) collect_kredis_type(name, "Kredis::Types::Scalar") super end |
#kredis_unique_list(name, limit: nil, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) ⇒ Object
67 68 69 70 71 |
# File 'lib/tapioca/dsl/extensions/kredis.rb', line 67 def kredis_unique_list(name, limit: nil, key: nil, default: nil, typed: :string, config: :shared, after_change: nil) collect_kredis_type(name, "Kredis::Types::UniqueList") super end |