Skip to content

Latest commit

 

History

History
45 lines (30 loc) · 1.19 KB

README.md

File metadata and controls

45 lines (30 loc) · 1.19 KB

drone-cache-lib

Build Status Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com Go Doc Go Report

A Go client library for creating cache plugins.

Usage

Download the packe

go get -d github.com/drone/drone-cache-lib

Import the package

import "github.com/drone/drone-cache-lib/cache"

Create a Cache object

cache, err := cache.New(storage)

To rebuild the cache

err := cache.Rebuild(src, dst)

To restore the cache

err := cache.Restore(src)

Supported archive formats

  • .tar