Skip to content

Memory Store Option #260

@mehmetaydogduu

Description

@mehmetaydogduu

I think per request cache is good but process level caching may be an alternative an more faster option.

The current implementation uses ActiveSupport::CurrentAttributes

Another adapter can be implemented with ActiveSupport::Cache::MemoryStore API.

memory_store = ActiveSupport::Cache::MemoryStore.new(size: 64.megabytes)
memory_store.write('serialized_settings', Settings.all.to_json)
memory_store.read('serialized_settings')
memory_store.delete('serialized_settings')

This idea is open to comments here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions