Map Redis types directly to Ruby objects
19-Sep-2019 1687
This is not an ORM. People that are wrapping ORM’s around Redis are missing the point.The killer feature of Redis is that it allows you to perform atomic operations on individual data structures, like counters, lists, and sets. The atomic part is HUGE. Using an ORM wrapper that retrieves a "record", updates values, then sends those values back, removes the atomicity, and thus the major advantage of Redis. Just use MySQL, k?This gem provides a Rubyish interface to Redis, by mapping Redis data types to Ruby objects, via a thin layer over the redis gem. It offers several advantages over the lower-level redis-rb API:.
Map Redis types directly to Ruby objects #ruby #rubydeveloper #rubyonrails #Redis #types #directly #objects #redis #types https://www.rubyonrails.ba/link/map-redis-types-directly-to-ruby-objects