Migrate to comeonin 4 and Cachex 3

Also fix some warning in the code and add a missing alias
This commit is contained in:
Thog 2018-05-20 18:05:34 +02:00
commit e55c6f311b
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
11 changed files with 42 additions and 48 deletions

View file

@ -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
]
],