agencies redis funcs