Skip to content

flag to disable caching #17

Open
Open
@bradrydzewski

Description

In order to disable caching, the cacheCloner should implement the Cloner interface. This makes it super simple to wrap the default cloner with caching, or without, while keeping the rest of the code the same. For example, if they implement the same interface, we can do this:

clone := cloner.NewDefault()
if nocache == false {
  clone = cloner.NewCache(clone)
}

We can then add a --no-cache flag.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions