D-James-GH / D-James-GH/cached_query

Add cache scopes

Open
#70 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
88
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Add the ability to create scoped queries. Removing a scope would delete all the queries inside the scope.

This would be useful for logged in users. An app could push a "logged in" scope when a user is authenticated, then pop the scope when the user logs out. This prevent showing the wrong data to the next user to log in without having to manually delete the cache on log out.

Queries should be able to specify the scope of the query. If non is specified use the last pushed scope.

Inspired by get_it scopes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is named in the issue. Start by locating the query and cache APIs, then study the get_it scopes inspiration and define coverage for explicit query scopes, defaulting to the last pushed scope, removing a scope, and preventing the previous user's cached data from reappearing.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.