gatewayd-plugin-cache

command module
v0.0.14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

README

gatewayd-plugin-cache

GatewayD plugin for caching query results.

Features

  • Basic caching of database responses to client queries
  • Invalidate cached responses on upsert and delete (table-based)
  • Periodic cache invalidation
  • Support for setting expiry time on cached data
  • Support for caching responses from multiple databases on multiple servers
  • Detect client's chosen database from the client's startup message
  • Metrics for quantifying cache hits, misses, gets, sets and deletes
  • Logging at various levels
  • Configurable via environment variables

Build

To build the plugin, run the following command:

make && make checksum

Running the above command causes these command to run:

  1. go mod tidy && go build -ldflags "-s -w" ⇒ compiles and generates gatewayd-plugin-cache.
  2. sha256sum -b gatewayd-plugin-cache ⇒ generates SHA256 hash.

For now, the generated hash should be manually replaced with the old one in gatewayd_plugins.yaml.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL