How To Install golang-github-patrickmn-cache-devel on Fedora 36

In this tutorial we learn how to install golang-github-patrickmn-cache-devel in Fedora 36. golang-github-patrickmn-cache-devel is In-memory key

Introduction

In this tutorial we learn how to install golang-github-patrickmn-cache-devel on Fedora 36.

What is golang-github-patrickmn-cache-devel

Go-cache is an in-memory key suitable for applications running on a single machine. Its major advantage is that, being essentially a thread-safe map[string]interface{} with expiration times, it doesn’t need to serialize or transmit its contents over the network. Any object can be stored, for a given duration or forever, and the cache can be safely used by multiple goroutines. Although Go-cache isn’t meant to be used as a persistent datastore, the entire cache can be saved to and loaded from a file (using c.Items() to retrieve the items map to serialize, and NewFrom() to create a cache from a deserialized one) to recover from downtime quickly. (See the docs for NewFrom() for caveats.) This package contains the source code needed for building packages that reference the following Go import paths – github.com/patrickmn/go-cache

We can use yum or dnf to install golang-github-patrickmn-cache-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install golang-github-patrickmn-cache-devel.

Install golang-github-patrickmn-cache-devel on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install golang-github-patrickmn-cache-devel using dnf by running the following command:

sudo dnf -y install golang-github-patrickmn-cache-devel

Install golang-github-patrickmn-cache-devel on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install golang-github-patrickmn-cache-devel using yum by running the following command:

sudo yum -y install golang-github-patrickmn-cache-devel

How To Uninstall golang-github-patrickmn-cache-devel on Fedora 36

To uninstall only the golang-github-patrickmn-cache-devel package we can use the following command:

sudo dnf remove golang-github-patrickmn-cache-devel

golang-github-patrickmn-cache-devel Package Contents on Fedora 36

/usr/share/doc/golang-github-patrickmn-cache-devel
/usr/share/doc/golang-github-patrickmn-cache-devel/CONTRIBUTORS
/usr/share/doc/golang-github-patrickmn-cache-devel/README.md
/usr/share/gocode/src/github.com
/usr/share/gocode/src/github.com/patrickmn
/usr/share/gocode/src/github.com/patrickmn/go-cache
/usr/share/gocode/src/github.com/patrickmn/go-cache/.goipath
/usr/share/gocode/src/github.com/patrickmn/go-cache/README.md
/usr/share/gocode/src/github.com/patrickmn/go-cache/cache.go
/usr/share/gocode/src/github.com/patrickmn/go-cache/cache_test.go
/usr/share/gocode/src/github.com/patrickmn/go-cache/sharded.go
/usr/share/gocode/src/github.com/patrickmn/go-cache/sharded_test.go
/usr/share/licenses/golang-github-patrickmn-cache-devel
/usr/share/licenses/golang-github-patrickmn-cache-devel/LICENSE

References

Summary

In this tutorial we learn how to install golang-github-patrickmn-cache-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).