mirror of
https://github.com/mCaptcha/cache.git
synced 2024-11-24 01:15:31 +03:00
document on_delete callback
This commit is contained in:
parent
a1f9bcb247
commit
efb67a4a85
1 changed files with 2 additions and 1 deletions
|
@ -67,7 +67,8 @@ pub struct Bucket {
|
|||
}
|
||||
|
||||
impl Bucket {
|
||||
/// run when bucket is deleted from expiration
|
||||
/// Run when bucket timer expired at BUCKET_EXPIRY_OFFSET. Runs scheduled jobs in corresponding
|
||||
/// if they haven't already executed
|
||||
pub fn on_delete(ctx: &Context, _event_type: NotifyEvent, _event: &str, key_name: &str) {
|
||||
// TODO: this callback is executed after the bucket is deleted. So all jobs scheduled within
|
||||
// the bucket are lost. This means, we could end up with stagnent increments in mcaptcha objects
|
||||
|
|
Loading…
Reference in a new issue