Rename table. Add docs.

This commit is contained in:
Erik Johnston 2016-08-15 11:45:57 +01:00
parent 784a2d4f2c
commit d9664344ec
4 changed files with 16 additions and 6 deletions

View file

@ -20,15 +20,17 @@ import logging
logger = logging.getLogger(__name__)
# This stream is used to notify replication slaves that some caches have
# been invalidated that they cannot infer from the other streams.
CREATE_TABLE = """
CREATE TABLE cache_stream (
CREATE TABLE cache_invalidation_stream (
stream_id BIGINT,
cache_func TEXT,
keys TEXT[],
invalidation_ts BIGINT
);
CREATE INDEX cache_stream_id ON cache_stream(stream_id);
CREATE INDEX cache_invalidation_stream_id ON cache_invalidation_stream(stream_id);
"""