Also added token and flags fields. The token field can be used as a tie-breaker for modtime and also for faster cas() operations. The flags field makes serialization and compression format changes easier in the future. Bug: T274174 Change-Id: I45731a877b21835652993c2d285165a76eeae3e9
63 lines
1.4 KiB
JSON
63 lines
1.4 KiB
JSON
{
|
|
"comment": "Add objectcache.modtime and objectcache.token fields (T274174)",
|
|
"before": {
|
|
"name": "objectcache",
|
|
"comment": "For a few generic cache operations if not using Memcached",
|
|
"columns": [
|
|
{
|
|
"name": "keyname",
|
|
"type": "binary",
|
|
"options": { "notnull": true, "default": "", "length": 255 }
|
|
},
|
|
{
|
|
"name": "value",
|
|
"type": "blob",
|
|
"options": { "notnull": false, "length": 16777215 }
|
|
},
|
|
{
|
|
"name": "exptime",
|
|
"type": "mwtimestamp",
|
|
"options": { "notnull": true }
|
|
}
|
|
],
|
|
"indexes": [
|
|
{ "name": "exptime", "columns": [ "exptime" ], "unique": false }
|
|
],
|
|
"pk": [ "keyname" ]
|
|
},
|
|
"after": {
|
|
"name": "objectcache",
|
|
"comment": "For a few generic cache operations if not using Memcached",
|
|
"columns": [
|
|
{
|
|
"name": "keyname",
|
|
"type": "binary",
|
|
"options": { "notnull": true, "default": "", "length": 255 }
|
|
},
|
|
{
|
|
"name": "value",
|
|
"type": "blob",
|
|
"options": { "notnull": false, "length": 16777215 }
|
|
},
|
|
{
|
|
"name": "exptime",
|
|
"type": "mwtimestamp",
|
|
"options": { "notnull": true }
|
|
},
|
|
{
|
|
"name": "modtoken",
|
|
"type": "string",
|
|
"options": { "notnull": true, "length": 17, "default": "00000000000000000" }
|
|
},
|
|
{
|
|
"name": "flags",
|
|
"type": "integer",
|
|
"options": { "notnull": false, "unsigned": true, "default": null }
|
|
}
|
|
],
|
|
"indexes": [
|
|
{ "name": "exptime", "columns": [ "exptime" ], "unique": false }
|
|
],
|
|
"pk": [ "keyname" ]
|
|
}
|
|
}
|