Module key
Storable key implementation.
Key (type, id)
Database Key constructor
Parameters
String | type | The type of the key |
Number | id | The id of the key |
Key.prototype.cacheKey
The cache key of this Key instance
Key.prototype.equals (key)
Returns true if this key is equal to the one passed as argument
Parameters
Key | key | The key to compare to |
Returns
Boolean | True if both keys are equal, false otherwise |
Key.prototype.id
Contains the id of this key
Key.prototype.type
Contains the name of the entity of this key