Socket
Socket
Sign inDemoInstall

git.sr.ht/~jamesponddotco/recache-go

Package Overview
Dependencies
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    git.sr.ht/~jamesponddotco/recache-go

Package recache provides a simple caching interface for Go's regular expressions package, regexp.


Version published

Readme

Source

recache

Package recache is a lightweight caching library for Go's standard regular expression package that offers improved performance by avoiding recompilation of global regular expression variables and by caching regular expressions.

Features

  • Stable cache interface.
  • Simple and easy-to-use API.
  • Thread-safe caching of compiled regular expressions.
  • Lazy compilation of regular expressions.
  • Minimal memory allocations.

recache.Cache implementations

The recache package itself only provides a cache interface and some utility functions for users who wish to implement that interface. You can either use an implementation created by someone else or write your own.

Implementations

If wrote a recache.Cache implementation and wish it to be linked here, please send a patch.

Installation

To install recache alone, run:

go get git.sr.ht/~jamesponddotco/recache-go

Contributing

Anyone can help make recache better. Check out the contribution guidelines for more information.

Resources

The following resources are available:


Released under the MIT License.

FAQs

Last updated on 01 Apr 2023

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc