Module: RedisMasterSlave::ReadOnly
- Defined in:
- lib/redis_master_slave/read_only.rb
Overview
Clients with no master defined are extended with this module.
Attempts to access #writable_master will raise a ReadOnly::Error.
Instance Method Summary collapse
Instance Method Details
#writable_master ⇒ Object
8 9 10 |
# File 'lib/redis_master_slave/read_only.rb', line 8 def writable_master raise ReadOnlyError, "no master available" end |