Skip to content

Commit 5311801

Browse files
committed
import moke cache
1 parent d83b7c1 commit 5311801

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

crates/iceberg/src/encryption/manager.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ use std::time::Duration;
3131
use aes_gcm::aead::OsRng;
3232
use aes_gcm::aead::rand_core::RngCore;
3333
use chrono::Utc;
34+
use Cache;
3435
use uuid::Uuid;
3536

3637
const MILLIS_IN_DAY: i64 = 24 * 60 * 60 * 1000;
@@ -66,10 +67,10 @@ const AAD_PREFIX_LENGTH: usize = 16;
6667
pub struct EncryptionManager {
6768
kms_client: Arc<dyn KeyManagementClient>,
6869
#[builder(
69-
default = moka::future::Cache::builder().time_to_live(DEFAULT_CACHE_TTL).build(),
70+
default = Cache::builder().time_to_live(DEFAULT_CACHE_TTL).build(),
7071
setter(skip)
7172
)]
72-
kek_cache: moka::future::Cache<String, SensitiveBytes>,
73+
kek_cache: Cache<String, SensitiveBytes>,
7374
/// AES key size for DEK generation. Defaults to 128-bit.
7475
#[builder(default = AesKeySize::default())]
7576
key_size: AesKeySize,

0 commit comments

Comments
 (0)