Skip to content

feat: use Nitro KV Storage to get stats from Redis#47

Open
rwd wants to merge 4 commits into
mainfrom
feat/EC-7276-nitro-storage-redis-stats
Open

feat: use Nitro KV Storage to get stats from Redis#47
rwd wants to merge 4 commits into
mainfrom
feat/EC-7276-nitro-storage-redis-stats

Conversation

@rwd

@rwd rwd commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

Configure Redis for ds4ch app with:

NUXT_REDIS_URL=redis://localhost:16379

(where the Redis db is one populated by the portal.js app's cachers)

Then, with the ds4ch app running, http://localhost:3000/api/stats/items/typeCounts will return the item type counts.

From a Nuxt page or component, retrieve this with:

const { data } = await useFetch('/api/stats/items/typeCounts')

Documentation:

@github-actions

Copy link
Copy Markdown
Contributor

JIRA ticket: EC-7276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant