File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,11 @@ MongoCrypt::MongoCrypt(const CallbackInfo& info) : ObjectWrap(info) {
571
571
mongocrypt_setopt_bypass_query_analysis (mongo_crypt ());
572
572
}
573
573
574
+ if (options.Has (" keyExpirationMS" )) {
575
+ mongocrypt_setopt_key_expiration (
576
+ mongo_crypt (), options.Get (" keyExpirationMS" ).ToNumber ().Int64Value ());
577
+ }
578
+
574
579
mongocrypt_setopt_use_range_v2 (mongo_crypt ());
575
580
576
581
mongocrypt_setopt_use_need_kms_credentials_state (mongo_crypt ());
Original file line number Diff line number Diff line change 35
35
},
36
36
"license" : " Apache-2.0" ,
37
37
"gypfile" : true ,
38
- "mongodb:libmongocrypt" : " 1.13 .0" ,
38
+ "mongodb:libmongocrypt" : " 1.14 .0" ,
39
39
"dependencies" : {
40
40
"node-addon-api" : " ^4.3.0" ,
41
41
"prebuild-install" : " ^7.1.3"
Original file line number Diff line number Diff line change @@ -67,6 +67,8 @@ type MongoCryptConstructorOptions = {
67
67
cryptSharedLibSearchPaths ?: string [ ] ;
68
68
cryptSharedLibPath ?: string ;
69
69
bypassQueryAnalysis ?: boolean ;
70
+ /** Configure the time to expire the DEK from the cache. */
71
+ keyExpirationMS : number ;
70
72
/** TODO(NODE-6793): remove this option and have it always set in the next major */
71
73
enableMultipleCollinfo ?: boolean ;
72
74
} ;
You can’t perform that action at this time.
0 commit comments