You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: storage.rs
    path of file: ./repos/clash-nyanpasu/backend/tauri/src/core/tasks
    
    the code of the file until where you have to start completion: // store is a interface to save and restore task states
use super::{
    events::TaskEvent,
    task::{TaskEventID, TaskID, TaskManager},
    utils::Result,
};
use crate::core::{storage::Storage, task
    
    pub fn get_event_ids(&self, task_id: TaskID) -> Result<Option<Vec<TaskEventID>>> {
        let db = Storage::global().get_instance();
        let key = format!("task:events:task_id:{}", task_id);
        let value = db.get(key.as_bytes())?;
        let value: Vec<TaskEventID> = match value {
            Some(mut value) => simd_json::from_slice(&mut value)?,
            None => return Ok(None),
        };
        Ok(Some(value))
    }