Skip to main content

cache_id

Function cache_id 

Source
pub fn cache_id(name: &str) -> i32
Expand description

Cache ID is the Java hash of the exact cache name, case-sensitive — mirrors Ignite server-side CU.cacheId(String), which is literally cacheName.hashCode() with no case transformation.

(Previously this upper-cased the name first, which happened to be invisible as long as every cache name used in this crate’s own tests was already all-uppercase, but produces the wrong id — a lookup miss against the real server — for any mixed/lower-case name, including one created by a non-Rust peer such as the Java thin client.)