Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Comments pointing out that the R in ORM is for relational are technically correct. That doesn't mean there aren't valid uses and reasons for libraries that abstract redis away.</p> <p>There are some great libraries that make interfacing with a redis feel much nicer and more idiomatic to the language you are using. For ruby libraries like <code>ohm</code> or <code>redis-native_hash</code> (disclosure: I wrote that one) do just that. For python there are tools like <code>redisco</code> and surely others. These make persisting objects to redis very simple and make working with redis feel much more ruby-ish or python-ish.</p> <p>Here are a few more benefits from using even the most basic abstraction, like a very thin wrapper you might write and keep in your application:</p> <ul> <li><p>Switching redis clients will be easier. Maybe you'll never do this, but if you did, changing your calls to redis in one place (your wrapper) is much simpler than changing them everywhere you use redis.</p></li> <li><p>Implementing things you might need for scaling, like sharding or connection pooling, is likely going to be easier if your calls are made through some abstraction.</p></li> <li><p>Replacing redis with some other key/value store or data structure server would be simpler if an abstraction is in place.</p></li> </ul> <p>I'm not advocating using an object mapping library or building your own abstraction, just pointing out there are valid reasons why you would. Its up to you to evaluate your needs and pick what works best for you. There is nothing wrong with calling redis directly either.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload