I think most noSql databases support this function, but, for example, cassandra has this function:
http://www.datastax.com/docs/1.0/ddl/column_family .
Cassandra can be downloaded here:
http://cassandra.apache.org/
However, if you use such db solely for expiration time , consider using a cache because it matches exactly what you are trying to do, especially if your time to live objects is short. In the end, the goal of the cache is "as a container for the objects you want to keep temporary." Most traditional caches use Key-Value caches / storages, like most NoSql databases.
While nosql databases like cassandra tend to retrieve data very quickly, you will find that most of them are worse if you constantly add and delete data compared to traditional caches and add an additional file system and / or network costs. If you find that what you need is actually a cache, there are a few tips.
http://ehcache.org/
It is an unallocated cache with a very simple api
http://www.jboss.org/infinispan/
is a distributed cache in memory / K, V store
In caches, however, you are limited by how much you can save, since by default they are in memory. Most of them have the ability to store data on file systems, but if that happens, I would use noSQL db.
source share