File tree Expand file tree Collapse file tree
crates/iceberg/src/encryption Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ use std::time::Duration;
3131use aes_gcm:: aead:: OsRng ;
3232use aes_gcm:: aead:: rand_core:: RngCore ;
3333use chrono:: Utc ;
34+ use Cache ;
3435use uuid:: Uuid ;
3536
3637const MILLIS_IN_DAY : i64 = 24 * 60 * 60 * 1000 ;
@@ -66,10 +67,10 @@ const AAD_PREFIX_LENGTH: usize = 16;
6667pub 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 ,
You can’t perform that action at this time.
0 commit comments