Files
gerrit/java/com/google/gerrit/server
Dave Borowitz 49c1c16097 Manage persistent cache versioning outside of Java serialization
The flipside of switching to a new serialization format that, unlike
Java serialization, doesn't store the version in the serialized
representation, is that we need to manage versioning on our own.

Define a version field in PersistentCacheDef, and store this in a new
column in the H2 database. This puts slightly more burden on the cache
implementation to manually manage versions, but makes the process of
updating caches safer; the latter happens much more often than the
former, so the extra up-front effort is worth it.

For existing caches using Java serialization, continue using the default
version of 0. This keeps the same invalidation semantics, and we can
bump the version to 1 when we start implementing new serialization
strategies.

Change-Id: I0d9cccea713fe6dcf368d8b95be59465c336bbb3
2018-04-27 12:25:45 -04:00
..
2018-04-27 08:16:33 +00:00
2018-04-24 22:05:04 -04:00
2018-04-13 20:59:46 +09:00
2018-04-24 10:36:34 +01:00
2018-04-24 15:00:15 -04:00
2018-04-13 08:58:16 +02:00
2018-04-18 10:36:46 +02:00
2018-04-18 08:47:02 +02:00