drone / drone-cache-lib

library for building cache plugins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

library for building cache plugins

License:Apache License 2.0


Languages

Language:Go 100.0%