Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement meta cache #2371

Merged
merged 11 commits into from
Aug 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
improve code
  • Loading branch information
FinalT committed Aug 6, 2023
commit 3daf9e762fb3e259bbdca19cf77e6accf1d29b09
2 changes: 0 additions & 2 deletions registry/servicediscovery/store/cache_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ type Item struct {
// NewCacheManager creates a new CacheManager instance.
// It initializes the cache manager with the provided parameters and starts a routine for cache expiration.
func NewCacheManager(name, cacheFile string, cacheExpired time.Duration, maxCacheSize int) (*CacheManager, error) {
gob.Register(Item{})

cm := &CacheManager{
name: name,
cacheFile: cacheFile,
Expand Down