var store = 'mymodel' redis;var MyModel = Model;var a = id:"1";a;
Model can define Array typed property "indexes", which defines which attributes are indexed. Example:
var MyModel = Model;
Model's attribute to be indexed
If defined attribute index is stored in sorted set. If defined as function, score will be calculated with given function. If not defined attribute is indexed in unordered set.
Index attribute only if defined dependencies are met.
If defined, store index in given set key, otherwise created automatically.