flag to disable caching

Open
#17 0 comments 0 reactions 1 assignee View on GitHub

@shubham149 is already working on this.

Since Mar 24, 2023.

Assessment

This issue has not been assessed yet.

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.

Dominant language
Go
Stars
3
Forks
5
Avg merge
7m
Merged PRs (30d)
1

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.

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.