ohm
ohm copied to clipboard
Object-Hash Mapping for Redis
Don't lazy initialize mutex, it's not thread safe. If you intended to have one unique mutex per class (e.g. derived classes have a unique mutex) I believe something like this...
I have use case where I'm trying to create a new model instance for an array of Redis hosts. I currently have this executing in a Sidekiq job, which relies...
Small collections seem to have the items returned in order by id, but larger collections return the items in a seemingly random order. Is this intentional? If so, is there...
In the [tagging example](https://github.com/soveran/ohm/blob/master/examples/tagging.rb), we can find posts having a certain tag with this: ``` ruby Post.find(tag: 'tagging') ``` Now how would someone be able to get the posts matching...
Is there a method for last id getting? Something like `User.last_id`, more low-cost (and low-level) than current `User.all.ids[-1]`
When I change my model, any fields that are still present in Redis cause a NoMethodError, e.g. ```ruby > Device.all.entries[0] Traceback (most recent call last): 2: from (irb):5 1: from...
Hi all, I was curious if anyone thought a method that fetches records by a unique and an array of values would be useful on Ohm::Model? It would look something...
Hello all, looking to see if we can get connection_pool support?
Referencing #224 here, so the following applies to the model described there. And I am still using Ohm 2.3 :-| I might have a race condition because of network lag...
```ruby time-agent(prod)> Device.all.each {|d| p d.camera_id} nil nil nil "56f290913d1f9207691bab65" nil time-agent(prod)> Device.find(camera_id: '56f290913d1f9207691bab65').count => 1 time-agent(prod)> Device.find(camera_id: nil).count => 0 ``` I'm expecting it to find the 4 devices...