update_cache_salt: Update the cache when the salt is changed for an existing...

Description Usage Arguments Details

Description

Updating the salts of an existing cached function can be tricky. This utility handles that by copying over the cached data into new shards, add indexes, and add new entires into the table_shard_map.

Usage

1
update_cache_salt(dbconn, prefix, old_salt, new_salt)

Arguments

dbconn

SQLConnection. A database connection.

prefix

character. The prefix for the cached_fcn

old_salt

list. The old salt object.

new_salt

list. A new salt object.

Details

Note: The old shards aren't removed from the database but they can be safely removed once cached functions using the old salts are fully depricated.


robertzk/cachemeifyoucan documentation built on May 27, 2019, 10:34 a.m.