Skip to content

refactor(Cache): Annotation abstracted cache and invalidation methods#79

Open
risixdzn wants to merge 8 commits into
developfrom
refactor/cache
Open

refactor(Cache): Annotation abstracted cache and invalidation methods#79
risixdzn wants to merge 8 commits into
developfrom
refactor/cache

Conversation

@risixdzn

Copy link
Copy Markdown
Member

Relates to FIXR-13

risixdzn added 8 commits June 12, 2026 14:53
…ching

Enable experimentalDecorators in tsconfig and create CacheService
(fail-open Redis wrapper), @cached, and @InvalidateCache decorators
under src/shared/infra/cache/.

Relates to FIXR-13
Apply @cached to queryModelById, queryModelBySlug, queryModelImages.
Apply @InvalidateCache to insertModel, updateModel, deleteModel,
insertModelImage, deleteModelImageRecord.

Relates to FIXR-13
Replace manual redis.get/set/del with declarative decorators.
Add @cached to queryUserById, queryUserByEmail, queryJWTPayloadByUserId.
Add @InvalidateCache to setUserVerified, deleteUser, updateUserWithGoogleData.

Relates to FIXR-13
Replace manual redis.get/set with @cached on queryAccountById.

Relates to FIXR-13
Replace manual redis.get/set with @cached on queryCompanyById
and queryCompanyBySubdomain. Add @InvalidateCache to createOrgWithAdmin.

Relates to FIXR-13
Replace manual redis.del with @InvalidateCache on updateUserPassword.

Relates to FIXR-13
…ers repos

Add @cached decorators to read-heavy methods and @InvalidateCache
to write methods across remaining repositories for transparent Redis caching.

Relates to FIXR-13
All cache key helpers and CACHE_TTL have been replaced by
@cached and @InvalidateCache decorator options.

Relates to FIXR-13
@linear-code

linear-code Bot commented Jun 12, 2026

Copy link
Copy Markdown

FIXR-13

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