46 uint32_t ref; |
48 uint32_t ref; |
47 } CachedUser; |
49 } CachedUser; |
48 |
50 |
49 typedef struct user_cache_elm UserCacheElm; |
51 typedef struct user_cache_elm UserCacheElm; |
50 struct user_cache_elm { |
52 struct user_cache_elm { |
51 CachedUser *user; |
53 CachedUser *user; |
52 UserCacheElm *next_user; // next elm in the cached user list |
54 UserCacheElm *next_user; // next elm in the cached user list |
53 UcxKey key; // key to access this element |
55 UcxKey key; // key to access this element |
54 size_t slot; // slot in the map |
56 size_t slot; // slot in the map |
55 UserCacheElm *next_elm; // next element in this map slot |
57 UserCacheElm *next_elm; // next element in this map slot |
56 time_t created; |
58 time_t created; |
57 }; |
59 }; |
58 |
60 |
59 typedef struct { |
61 typedef struct { |
60 UserCacheElm **map; |
62 UserCacheElm **map; |
61 size_t size; |
63 size_t size; |