mirror of
https://github.com/rclone/rclone.git
synced 2024-11-29 03:48:27 +08:00
deprecate cache backend (#5382)
This commit is contained in:
parent
654f5309b0
commit
062919e08c
|
@ -88,7 +88,6 @@ Please see [the full list of all storage providers and their features](https://r
|
|||
* Optional large file chunking ([Chunker](https://rclone.org/chunker/))
|
||||
* Optional transparent compression ([Compress](https://rclone.org/compress/))
|
||||
* Optional encryption ([Crypt](https://rclone.org/crypt/))
|
||||
* Optional cache ([Cache](https://rclone.org/cache/))
|
||||
* Optional FUSE mount ([rclone mount](https://rclone.org/commands/rclone_mount/))
|
||||
* Multi-threaded downloads to local disk
|
||||
* Can [serve](https://rclone.org/commands/rclone_serve/) local or remote files over HTTP/WebDav/FTP/SFTP/dlna
|
||||
|
|
6
backend/cache/cache.go
vendored
6
backend/cache/cache.go
vendored
|
@ -339,8 +339,14 @@ func parseRootPath(path string) (string, error) {
|
|||
return strings.Trim(path, "/"), nil
|
||||
}
|
||||
|
||||
var warnDeprecated sync.Once
|
||||
|
||||
// NewFs constructs an Fs from the path, container:path
|
||||
func NewFs(ctx context.Context, name, rootPath string, m configmap.Mapper) (fs.Fs, error) {
|
||||
warnDeprecated.Do(func() {
|
||||
fs.Logf(nil, "WARNING: Cache backend is deprecated and may be removed in future. Please use VFS instead.")
|
||||
})
|
||||
|
||||
// Parse config into Options struct
|
||||
opt := new(Options)
|
||||
err := configstruct.Set(m, opt)
|
||||
|
|
|
@ -43,7 +43,6 @@ using local disk.
|
|||
|
||||
Virtual backends wrap local and cloud file systems to apply
|
||||
[encryption](/crypt/),
|
||||
[caching](/cache/),
|
||||
[compression](/compress/)
|
||||
[chunking](/chunker/) and
|
||||
[joining](/union/).
|
||||
|
|
|
@ -3,7 +3,7 @@ title: "Cache"
|
|||
description: "Rclone docs for cache remote"
|
||||
---
|
||||
|
||||
{{< icon "fa fa-archive" >}} Cache (BETA)
|
||||
{{< icon "fa fa-archive" >}} Cache (DEPRECATED)
|
||||
-----------------------------------------
|
||||
|
||||
The `cache` remote wraps another existing remote and stores file structure
|
||||
|
|
|
@ -24,7 +24,6 @@ See the following for detailed instructions for
|
|||
* [Amazon S3](/s3/)
|
||||
* [Backblaze B2](/b2/)
|
||||
* [Box](/box/)
|
||||
* [Cache](/cache/)
|
||||
* [Chunker](/chunker/) - transparently splits large files for other remotes
|
||||
* [Citrix ShareFile](/sharefile/)
|
||||
* [Compress](/compress/)
|
||||
|
|
|
@ -67,7 +67,6 @@
|
|||
<a class="dropdown-item" href="/s3/"><i class="fab fa-amazon"></i> Amazon S3</a>
|
||||
<a class="dropdown-item" href="/b2/"><i class="fa fa-fire"></i> Backblaze B2</a>
|
||||
<a class="dropdown-item" href="/box/"><i class="fa fa-archive"></i> Box</a>
|
||||
<a class="dropdown-item" href="/cache/"><i class="fa fa-archive"></i> Cache</a>
|
||||
<a class="dropdown-item" href="/chunker/"><i class="fa fa-cut"></i> Chunker (splits large files)</a>
|
||||
<a class="dropdown-item" href="/compress/"><i class="fas fa-compress"></i> Compress (transparent gzip compression)</a>
|
||||
<a class="dropdown-item" href="/sharefile/"><i class="fas fa-share-square"></i> Citrix ShareFile</a>
|
||||
|
|
Loading…
Reference in New Issue
Block a user