I have used Redis for years but just getting started with Ohm. I like the timestamps in ohm-contrib but using created_at and updated_at uses up more RAM.
In Mongoid there is a Mongoid::Timestamps::Short which creates c_at and u_at saving disk space. But in your Ruby code you can access either by the long alias created_at or by the short name.
http://www.rubydoc.info/github/mongoid/mongoid/Mongoid/Timestamps/Short
Has anyone tried to implement such feature in ohm-contrib?
I have used Redis for years but just getting started with Ohm. I like the timestamps in ohm-contrib but using
created_atandupdated_atuses up more RAM.In Mongoid there is a
Mongoid::Timestamps::Shortwhich createsc_atandu_atsaving disk space. But in your Ruby code you can access either by the long aliascreated_ator by the short name.http://www.rubydoc.info/github/mongoid/mongoid/Mongoid/Timestamps/Short
Has anyone tried to implement such feature in ohm-contrib?