In-memory storage for Shrine
Ruby
Switch branches/tags
Clone or download
janko-m Update links to Shrine gems
Shrine gems have been moved to the "shrinerb" repository.
Latest commit e3ae809 Mar 11, 2018

README.md

Shrine::Storage::Memory

Provides in-memory storage for Shrine.

This storage shouldn't be used in production, but it is handy to use in tests.

Installation

gem "shrine-memory"

Usage

require "shrine/storage/memory"

Shrine.storages[:cache] = Shrine::Storage::Memory.new

Inspiration

This gem was inspired by refile-memory.

License

MIT