Skip to content

feat: Implement Caching for Specific Tables#24

Open
meixiaofei wants to merge 1 commit intogo-gorm:masterfrom
meixiaofei:master
Open

feat: Implement Caching for Specific Tables#24
meixiaofei wants to merge 1 commit intogo-gorm:masterfrom
meixiaofei:master

Conversation

@meixiaofei
Copy link
Contributor

@meixiaofei meixiaofei commented Apr 9, 2025

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

I saw an issue there and just try to solve it. #21

User Case Description

cachesPlugin := &caches.Caches{Conf: &caches.Config{
    Easer: true,
    // CanCachedTables: []any{}, // If the table is specified, only the designated entries will be affected by caching, value can be struct or string, and string can be regx
}}

for more can see unit test: caches_test.TestCaches_canCacheTables

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