class Mustermann::PatternCache

A simple, persistent cache for creating repositories.

@example

require 'mustermann/pattern_cache'
cache = Mustermann::PatternCache.new

# use this instead of Mustermann.new
pattern = cache.create_pattern("/:name", type: :rails)

@note

{Mustermann::Pattern.new} (which is used by {Mustermann.new}) will reuse instances that have
not yet been garbage collected. You only need an extra cache if you do not keep a reference to
the patterns around.

@api private