Categorygithub.com/splitio/gincache
modulepackage
1.0.1
Repository: https://github.com/splitio/gincache.git
Documentation: pkg.go.dev

# README

GinCache Middleware

build workflow PkgGoDev

Overview

Middleware utility for caching requests.

Twitter Follow

Compatibility

This utility is compatible with Go 1.18.

Submitting issues

The Split team monitors all issues submitted to this issue tracker. We encourage you to use this issue tracker to submit any bug reports, feedback, and feature enhancements. We'll do our best to respond in a timely manner.

Contributing

Please see Contributors Guide to find all you need to submit a Pull Request (PR).

License

Licensed under the Apache License, Version 2.0. See: Apache License.

About Split

Split is the leading Feature Delivery Platform for engineering teams that want to confidently deploy feature flags as fast as they can develop them. Split’s fine-grained management, real-time monitoring, and data-driven experimentation ensure that new feature flags will improve the customer experience without breaking or degrading performance. Companies like Twilio, Salesforce, GoDaddy and WePay trust Split to power their feature delivery.

To learn more about Split, contact [email protected], or get started with feature flags for free at Split.

Split has built and maintains SDKs for:

For a comprehensive list of open source projects visit our Github page.

Learn more about Split:

Visit split.io/product for an overview of Split, or visit our documentation at help.split.io for more detailed information.

# Packages

No description provided by the author

# Functions

New creates a new middleware with a custom key factory function.

# Constants

StickyEntry is the name of the context key to be set when we want an entry to be sticky `sticky` entries are not purged when the cache is full.

# Structs

Middleware struct implements a gin middleware that offers request-caching.
Options wraps all parameters used to configure the caching middleware.

# Interfaces

CacheFlusher defines the interface to be used by components that need to evict/flush entries from the cache.

# Type aliases

KeyFactoryFn defines the function signature for a Key Factory.
SurrogateFactoryFn defines the function signature for a Surrogate key list factory.