Skip to content

Redis Object Structure

klmcwhirter edited this page Apr 4, 2021 · 13 revisions
  • Puzzles

Key: urn:puzzle:name

Value:

{
  "name": "string",
  "description": "string",
  "words": [ "string" ]
}
  • PuzzleBoards

List Key: urn:puzzleboards:puzzle_name

Value:

[
    {
        "height": 15,
        "width": 15,
        "letters": [
            [ "row of letters each there own string" ]
        ],
        "solutions": [
            {
                "word": "string",
                "placed": true,
                "origin": {
                    "x": 0,
                    "y": 0
                },
                "direction": "string",
                "points": [
                    {
                        "x": 0,
                        "y": 0
                    },
                    {
                        "x": 0,
                        "y": 0
                    }
                ]
            }
        ],
        "puzzle": {
            "name": "string",
            "description": "string",
            "words": [
                "string"
            ]
        }
    },
    ...
]
Clone this wiki locally