Tomasz Grabiec
b1e45e4401
db: Store ttl in atomic_cell
...
Origin does that, so should we. Both ttl and expiry time are stored in
sstables. The value of ttl seems to be used to calculate the read
digest (expiry is not used for that).
The API for creating atomic_cells changed a bit.
To create a non-expiring cell:
atomic_cell::make_live(timestamp, value);
To create an expiring cell:
atomic_cell::make_live(timestamp, value, expiry, ttl);
or:
// Expiry is calculated based on current clock reading
atomic_cell::make_live(timestamp, value, ttl_optional);
2015-05-06 19:42:38 +02:00
..
2015-04-29 15:40:38 +03:00
2015-04-28 18:00:35 +03:00
2015-05-06 17:27:22 +02:00
2015-05-06 13:52:59 +02:00
2015-04-29 15:40:38 +03:00
2015-04-20 16:15:34 +03:00
2015-04-20 16:15:34 +03:00
2015-05-06 17:22:35 +02:00
2015-02-12 19:40:58 +01:00
2015-04-29 15:40:38 +03:00
2015-04-28 18:16:49 +03:00
2015-04-24 18:01:01 +02:00
2015-04-29 15:09:04 +03:00
2015-04-29 15:40:38 +03:00
2015-04-29 15:40:38 +03:00
2015-04-29 15:09:04 +03:00
2015-01-05 14:13:31 +08:00
2015-04-29 15:09:04 +03:00
2015-04-29 15:09:04 +03:00
2015-03-03 11:57:43 +02:00
2015-03-30 09:01:59 +02:00
2015-04-28 17:48:07 +02:00
2015-02-12 19:40:58 +01:00
2015-02-12 19:40:58 +01:00
2015-04-29 15:40:38 +03:00
2015-04-29 16:31:36 +03:00
2015-04-29 15:40:38 +03:00
2015-04-21 10:57:35 +03:00
2015-04-20 16:15:34 +03:00
2015-04-29 15:40:38 +03:00
2015-04-24 18:01:01 +02:00
2015-02-04 10:29:00 +01:00
2015-02-12 19:40:58 +01:00
2015-04-14 15:36:42 +02:00
2015-04-09 09:31:48 +02:00
2015-04-13 14:55:07 +03:00
2015-04-07 10:56:19 +03:00
2015-03-25 10:36:19 +01:00
2015-03-24 12:03:00 +01:00
2015-04-20 16:15:34 +03:00
2015-03-11 14:56:10 +01:00
2015-04-29 15:40:38 +03:00
2015-04-20 16:15:34 +03:00
2015-04-29 15:40:38 +03:00
2015-04-29 15:40:38 +03:00
2015-04-20 16:15:34 +03:00
2015-04-29 15:40:38 +03:00
2015-04-20 16:15:34 +03:00
2015-04-15 20:44:50 +02:00
2015-05-06 19:42:38 +02:00
2015-04-29 15:40:38 +03:00
2015-04-26 19:25:39 +03:00
2015-03-11 14:56:10 +01:00