On Tuesday, April 30, 2019 at 12:08:00 PM UTC-7, Rodrigo Dutra wrote:
>
> Thanks Jeremy. I'm looking to cache several types of lookups some of them 
> are actually primary key lookups (although I'm trying to use REDIS as the 
> cache store so I'll probably need to monkeypatch the set , get and delete 
> methods for it to be compliant with the ruby-memcached api) . 
> Do you know if there's any other solution out there to cache more complex 
> queries easily ?
>

You would probably want to use something like 
https://github.com/SamSaffron/lru_redux, using the parameters as the key 
and the array of results as the value (and freezing the array and every 
value in the array).

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to