Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rails-fast-cache

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rails-fast-cache

  • 1.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Rails Fast Cache

This gem provides a wrapper around Rails cache store that improves performance by:

  • using Brotli as default compressor instead of GZip
  • using MessagePack as default serializer instead of Marshal
  • delegating cache writes to a thread pool instead of running them synchronously

Requirements

  • Rails 7.1+
  • You need to provide appropriate MessagePack serializers to cache custom classes

Installation

Gemfile

gem 'rails-fast-cache'

Configuration

Rail Fast Cache implements ActionsSupport::Cache::Store API and can be instantiated by passing the same parameters you would pass to Rails' config.cache_store configuration option.

class Application < Rails::Application
...
  config.cache_store = RailsFastCache::Store.new(:memory_store, { size: 64.megabytes })

FAQs

Package last updated on 02 Sep 2024

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc