From 46f1d889d3e4f078bc33b97ec6ce96d6dbea6fe1 Mon Sep 17 00:00:00 2001 From: Stanislav Katkov Date: Thu, 28 Sep 2023 11:52:50 +0300 Subject: [PATCH] add yard documentation for compression option --- lib/active_support/cache/database_store.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/active_support/cache/database_store.rb b/lib/active_support/cache/database_store.rb index 9a4a514..90c9f75 100644 --- a/lib/active_support/cache/database_store.rb +++ b/lib/active_support/cache/database_store.rb @@ -21,7 +21,8 @@ def self.supports_cache_versioning? end # param [Hash] options options - # option options [Class] :model model class. Default: ActiveSupport::Cache::DatabaseStore::Model + # option options [Class] :model (default: ActiveSupport::Cache::DatabaseStore::Model) model class + # option options [String] :compression provide (default: nil) "gzip" to compress cache values. def initialize(options = nil) @model = (options || {}).delete(:model) || Model @compression = (options || {}).delete(:compression)&.to_s