Skip to content

Update Redis Key Naming Convention #27

@bora001

Description

@bora001

Description

  • Update the Redis key naming convention from kebab-case to a colon (:) separated format to improve consistency and structure.

export const REDIS_KEY = {
BANNER: "banner-cache",
ACTIVE_DEAL: "active-deal-cache",
ADMIN_PRODUCT_LIST: "admin-product-list-cache",
ADMIN_DEAL_LIST: "admin-deal-list-cache",
SETTING: "setting-cache",
};

Expectation

export const REDIS_KEY = {
  BANNER: "cache:banner",
  ACTIVE_DEAL: "cache:deal:active",
  ADMIN_PRODUCT_LIST: "cache:admin:product:list",
  ADMIN_DEAL_LIST: "cache:admin:deal:list",
  SETTING: "cache:setting",
};

Task

  • Refactor cache logic to use updated keys (get, set, del)
  • Remove or expire outdated cached keys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions