Description
Usergrid should support the ability to set a TTL for an entity:
1) When it is created, using either the qparam TTL (in seconds)
2) After it is created by calling PUT /
/
{app}/
{collection}/
{entity}/_ttl (value in seconds)
A TTL of -1 should indicate that there is no expiry.
Also the ttl should be returned in the 'metadata' section of an entity if there is a TTL.
When setting a TTL, ensure all column families and related data are updated:
1) MVCC_Entity_Data_
2) Unique_Values_
3) Directed edges in all of Graph_
4) The edge reference in appropriate Edge_Shards row
5) The indexed document in ElasticSearch