Migrate to comeonin 4 and Cachex 3
Also fix some warning in the code and add a missing alias
This commit is contained in:
parent
413de8e4bc
commit
e55c6f311b
11 changed files with 42 additions and 48 deletions
|
|
@ -5,6 +5,7 @@ defmodule Pleroma.Application do
|
|||
# for more information on OTP Applications
|
||||
def start(_type, _args) do
|
||||
import Supervisor.Spec
|
||||
import Cachex.Spec
|
||||
|
||||
# Define workers and child supervisors to be supervised
|
||||
children =
|
||||
|
|
@ -28,8 +29,11 @@ defmodule Pleroma.Application do
|
|||
[
|
||||
:idempotency_cache,
|
||||
[
|
||||
default_ttl: :timer.seconds(6 * 60 * 60),
|
||||
ttl_interval: :timer.seconds(60),
|
||||
expiration:
|
||||
expiration(
|
||||
default: :timer.seconds(6 * 60 * 60),
|
||||
interval: :timer.seconds(60)
|
||||
),
|
||||
limit: 2500
|
||||
]
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue