Skip to content

Ohm::Timestamps - use c_at and u_at #44

@dmitrypol

Description

@dmitrypol

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions