Skip to content

Commit

Permalink
Merge pull request #76 from jjcomer/cache-redux
Browse files Browse the repository at this point in the history
Cache redux
  • Loading branch information
jjcomer authored Mar 2, 2023
2 parents a786f3b + e5aa71d commit afba416
Show file tree
Hide file tree
Showing 11 changed files with 736 additions and 429 deletions.
477 changes: 260 additions & 217 deletions Cargo.lock

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,59 +5,58 @@ doc = false

[package]
name = 'hogan'
version = '0.14.0'
version = '0.15.0'
authors = [
'Jonathan Morley <[email protected]>',
'Josh Comer <[email protected]>',
]
edition = '2021'

[dependencies]
actix-web = '4.0'
actix-web = '4.3'
anyhow = '1.0'
bincode = '1.3'
compression = '0.1'
dogstatsd = '0.6'
dogstatsd = '0.7'
futures = '0.3'
handlebars = '4.1'
handlebars = '4.3'
itertools = '0.10'
json-patch = '0.2'
json-patch = '0.3'
lazy_static = '1'
log = '0.4'
lru_time_cache = '0.11'
lru = '0.9'
parking_lot = '0.12'
riker = '0.4'
riker-patterns = '0.4'
serde_derive = '1.0'
serde_json = '1.0'
shellexpand = '2.1'
shellexpand = '3.0'
stderrlog = '0.5'
structopt = '0.3'
tempfile = '3'
thiserror = '1.0'
url = '2'
walkdir = '2'
which = '4.0'
zip = '0.6'

[dependencies.rusqlite]
version = '0.28'
features = ['bundled']

[dependencies.git2]
version = '0.15'
version = '0.16'
features = ['vendored-openssl']

[dependencies.regex]
version = '1'
version = '1.7'
default-features = false

[dependencies.serde]
version = '1.0'
features = ['rc']

[dependencies.uuid]
version = '1.1'
version = '1.2'
features = ['v4']

[dev-dependencies]
Expand Down
6 changes: 5 additions & 1 deletion src/app/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,18 @@ pub enum AppCommand {
)]
address: String,

/// Set the oldest age of items to keep in the DB at startup in days
/// Set the oldest age of items to keep in the caches (in days)
#[structopt(
long = "db-age",
default_value = "120",
value_name = "DB_MAX_AGE_IN_DAYS"
)]
db_max_age: usize,

/// Set the size of the in memory cache
#[structopt(long = "cache-size", default_value = "64", value_name = "CACHE_SIZE")]
cache_size: usize,

/// Filter environments to render templates for
#[structopt(
short = "e",
Expand Down
3 changes: 1 addition & 2 deletions src/app/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
pub mod cli;
pub mod config;
mod datadogstatsd;
mod db;
pub mod datadogstatsd;
mod fetch_actor;
mod head_actor;
pub mod server;
Loading

0 comments on commit afba416

Please sign in to comment.