Kashmir 是一个 Ruby DSL,轻松搞定缓存和序列化。
示例代码:
class Person include Kashmir def initialize(name, age) @name = name @age = age end representations do rep :name rep :age end end