User Tools

Site Tools


redis

Table of Contents

RedisDB

Runs on objectrec01

The following databases are defined:

  • 0: dev
  • 1: prelive
  • 2: live

The databases are used as

  • a Query Cache (prevent recalculation of similarity results for identical queries)
  • storage for image labels (should migrate into the next “lilly” version)
  • session docs (information about user sessions) see below for more info
  • A/B config docs (information needed by frontends to perform A/B tests) see below for more info

session doc

redis key pattern: “feedid#sessionid”

contents: msgpack python dictionary

  {
    "abtest":
    {
      "testid1": "A",
      "testid2": "B",
      ...
    },
    ...
  }

A/B config docs

redis key pattern: “abtest#feedid#testid”

contents: float (stored as string) indicating the probability of choosing “A”

Remark: This document should only exist while the test is active

redis.txt · Last modified: 2024/04/11 14:23 by 127.0.0.1