You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was evaluating Redis ORM/Model libraries and noticed redis-orm did not support attribute types. Basic attribute types could be added to coerce the String values loaded from Redis back into native Ruby types. Example:
TYPES = {
...
Date => proc { |value| Date.parse(value) if value },
...
}
class Homework < Redis::ORM
attribute :description
attribute :due_date, Date
end
The text was updated successfully, but these errors were encountered:
I was evaluating Redis ORM/Model libraries and noticed redis-orm did not support attribute types. Basic attribute types could be added to coerce the String values loaded from Redis back into native Ruby types. Example:
The text was updated successfully, but these errors were encountered: