Skip to content

Commit

Permalink
Replace .new.new with .new
Browse files Browse the repository at this point in the history
  • Loading branch information
treagod committed Feb 5, 2024
1 parent 49941cf commit 15797ab
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/docs/caching/reference/stores.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For example:

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours)
end
```

Expand All @@ -30,7 +30,7 @@ For example:

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Null.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Null.new(expires_in: 24.hours)
end
```

Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-0.3/caching/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For example, the following configuration configures an in-memory cache as the gl

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours)
end
```

Expand Down
4 changes: 2 additions & 2 deletions docs/versioned_docs/version-0.3/caching/reference/stores.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For example:

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours)
end
```

Expand All @@ -30,7 +30,7 @@ For example:

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Null.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Null.new(expires_in: 24.hours)
end
```

Expand Down
2 changes: 1 addition & 1 deletion docs/versioned_docs/version-0.4/caching/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For example, the following configuration configures an in-memory cache as the gl

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours)
end
```

Expand Down
4 changes: 2 additions & 2 deletions docs/versioned_docs/version-0.4/caching/reference/stores.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ For example:

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Memory.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Memory.new(expires_in: 24.hours)
end
```

Expand All @@ -30,7 +30,7 @@ For example:

```crystal
Marten.configure do |config|
config.cache_store = Marten::Cache::Store::Null.new.new(expires_in: 24.hours)
config.cache_store = Marten::Cache::Store::Null.new(expires_in: 24.hours)
end
```

Expand Down

0 comments on commit 15797ab

Please sign in to comment.