Per row TTL support for inmemorydb and cassandra

Fix for #115