mirror of
https://github.com/isar/rusqlite.git
synced 2025-08-20 21:09:31 +08:00
Replace lru-cache with hashlink
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
use crate::raw_statement::RawStatement;
|
||||
use crate::{Connection, Result, Statement};
|
||||
use lru_cache::LruCache;
|
||||
use hashlink::LruCache;
|
||||
use std::cell::RefCell;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::sync::Arc;
|
||||
@@ -54,7 +54,7 @@ impl Connection {
|
||||
}
|
||||
|
||||
/// Prepared statements LRU cache.
|
||||
#[derive(Debug)]
|
||||
// #[derive(Debug)] // FIXME: https://github.com/kyren/hashlink/pull/4
|
||||
pub struct StatementCache(RefCell<LruCache<Arc<str>, RawStatement>>);
|
||||
|
||||
/// Cacheable statement.
|
||||
|
Reference in New Issue
Block a user