Skip to content

Commit

Permalink
add yard documentation for compression option (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav (Stas) Katkov authored Sep 28, 2023
1 parent 5d51f8a commit 219a7cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/active_support/cache/database_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 219a7cf

Please sign in to comment.