šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/momentohq/client-sdk-go-compression-zstd

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/momentohq/client-sdk-go-compression-zstd

v0.1.1
Source
Go
Version published
Created
Source
logo

project status project stability

Packages

The zstd compression middleware for the Momento Golang SDK is available here on github: momentohq/client-sdk-go-compression-zstd.

go get github.com/momentohq/client-sdk-go-compression-zstd

Usage

To use the middleware, create a new instance of the zstd compression middleware and add it to the cache configuration from the Momento Golang SDK.

config := config.LaptopLatestWithLogger(loggerFactory).WithMiddleware(
  []middleware.Middleware{
    zstd_compression.NewZstdCompressionMiddleware(zstd_compression.ZstdCompressionMiddlewareProps{
      CompressionStrategyProps: compression.CompressionStrategyProps{
        CompressionLevel: compression.CompressionLevelDefault,
        Logger:           loggerFactory.GetLogger("compression-middleware"),
      },
    }),
  },
)

For more info, visit our website at https://gomomento.com!

FAQs

Package last updated on 16 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts