cache() — netty Function Reference
Architecture documentation for the cache() function in PoolThreadCache.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07["cache()"] f4c407ea_9e8c_d00d_ea7e_e355c94f8aba["PoolThreadCache"] 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 -->|defined in| f4c407ea_9e8c_d00d_ea7e_e355c94f8aba 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2["add()"] 5ba074e2_e7b8_74b3_3d57_4dac0324b0f2 -->|calls| 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 2e5e41fb_5512_318e_5f4b_1097ff34f0ba["cacheForSmall()"] 2e5e41fb_5512_318e_5f4b_1097ff34f0ba -->|calls| 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 59ad3e91_bd0f_e86a_c592_5fbef948c057["cacheForNormal()"] 59ad3e91_bd0f_e86a_c592_5fbef948c057 -->|calls| 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 59ad3e91_bd0f_e86a_c592_5fbef948c057["cacheForNormal()"] 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 -->|calls| 59ad3e91_bd0f_e86a_c592_5fbef948c057 2e5e41fb_5512_318e_5f4b_1097ff34f0ba["cacheForSmall()"] 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 -->|calls| 2e5e41fb_5512_318e_5f4b_1097ff34f0ba style 0cb1e698_5776_a20e_cb9d_1f9bc7c12e07 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buffer/src/main/java/io/netty/buffer/PoolThreadCache.java lines 189–198
private MemoryRegionCache<?> cache(PoolArena<?> area, int sizeIdx, SizeClass sizeClass) {
switch (sizeClass) {
case Normal:
return cacheForNormal(area, sizeIdx);
case Small:
return cacheForSmall(area, sizeIdx);
default:
throw new Error("Unexpected size class: " + sizeClass);
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does cache() do?
cache() is a function in the netty codebase, defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java.
Where is cache() defined?
cache() is defined in buffer/src/main/java/io/netty/buffer/PoolThreadCache.java at line 189.
What does cache() call?
cache() calls 2 function(s): cacheForNormal, cacheForSmall.
What calls cache()?
cache() is called by 3 function(s): add, cacheForNormal, cacheForSmall.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free