| /rocksdb-6.9/cache/ |
| D | clock_cache.cc | 183 size_t charge; member 210 Slice key, size_t charge, in CalcTotalCharge() 222 return charge + meta_charge; in CalcTotalCharge() 227 return CalcTotalCharge(key, charge, metadata_charge_policy); in CalcTotalCharge() 340 bool EvictFromCache(size_t charge, CleanupContext* context); 416 callback(handle.value, handle.charge); in ApplyToAllCacheEntries() 527 return charge <= capacity; in EvictFromCache() 531 while (usage + charge > capacity) { in EvictFromCache() 565 void* value, size_t charge, in Insert() argument 594 handle->charge = charge; in Insert() [all …]
|
| D | lru_cache.cc | 145 [callback](LRUHandle* h) { callback(h->value, h->charge); }); in ApplyToAllCacheEntries() 235 void LRUCacheShard::EvictFromLRU(size_t charge, in EvictFromLRU() argument 237 while ((usage_ + charge) > capacity_ && lru_.next != &lru_) { in EvictFromLRU() 340 size_t charge, Deleter* deleter, in Insert() argument 352 e->charge = charge; in Insert() 507 return reinterpret_cast<const LRUHandle*>(handle)->charge; in GetCharge()
|
| D | lru_cache.h | 58 size_t charge; // TODO(opt): Only allow uint32_t? member 147 return charge + meta_charge; in CalcTotalCharge() 214 size_t charge, Deleter* deleter, Cache::Handle** handle, in ALIGN_AS() 257 void EvictFromLRU(size_t charge, autovector<LRUHandle*>* deleted); in ALIGN_AS()
|
| D | cache_test.cc | 117 int charge = 1) { in Insert() argument 118 cache->Insert(EncodeKey(key), EncodeValue(value), charge, &deleter_); in Insert() 129 void Insert(int key, int value, int charge = 1) { in Insert() argument 130 Insert(cache_, key, value, charge); in Insert() 141 void Insert2(int key, int value, int charge = 1) { in Insert2() argument 142 Insert(cache2_, key, value, charge); in Insert2() 721 void callback(void* entry, size_t charge) { in callback() argument 722 callback_state.push_back({DecodeValue(entry), static_cast<int>(charge)}); in callback()
|
| D | sharded_cache.h | 30 size_t charge, Deleter* deleter, Cache::Handle** handle, 73 virtual Status Insert(const Slice& key, void* value, size_t charge,
|
| D | sharded_cache.cc | 46 Status ShardedCache::Insert(const Slice& key, void* value, size_t charge, in Insert() argument 51 ->Insert(key, hash, value, charge, deleter, handle, priority); in Insert()
|
| /rocksdb-6.9/utilities/simulator_cache/ |
| D | sim_cache.cc | 171 Status Insert(const Slice& key, void* value, size_t charge, Deleter* deleter, in Insert() argument 179 key_only_cache_->Insert(key, nullptr, charge, nullptr, nullptr, priority); in Insert() 184 cache_activity_logger_.ReportAdd(key, charge); in Insert() 188 return cache_->Insert(key, value, charge, deleter, handle, priority); in Insert()
|
| /rocksdb-6.9/db/ |
| D | table_cache.cc | 419 size_t charge = in Get() local 422 ioptions_.row_cache->Insert(row_cache_key.GetUserKey(), row_ptr, charge, in Get() 539 size_t charge = in MultiGet() local 542 ioptions_.row_cache->Insert(row_cache_key.GetUserKey(), row_ptr, charge, in MultiGet()
|
| D | db_block_cache_test.cc | 446 Status Insert(const Slice& key, void* value, size_t charge, Deleter* deleter, in Insert() argument 453 return LRUCache::Insert(key, value, charge, deleter, handle, priority); in Insert()
|
| D | db_basic_test.cc | 2055 virtual Status Insert(const Slice& key, void* value, size_t charge, in Insert() argument 2059 return target_->Insert(key, value, charge, deleter, handle, priority); in Insert()
|
| /rocksdb-6.9/ |
| D | LICENSE.Apache | 69 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 worldwide, non-exclusive, no-charge, royalty-free, irrevocable 168 and charge a fee for, acceptance of support, warranty, indemnity,
|
| D | COPYING | 23 have the freedom to distribute copies of free software (and charge for 87 You may charge a fee for the physical act of transferring a copy, and 100 part thereof, to be licensed as a whole at no charge to all third 143 years, to give any third party, for a charge no more than your
|
| /rocksdb-6.9/include/rocksdb/ |
| D | cache.h | 180 virtual Status Insert(const Slice& key, void* value, size_t charge,
|
| /rocksdb-6.9/table/block_based/ |
| D | block_based_table_reader.cc | 1166 size_t charge = block_holder->ApproximateMemoryUsage(); in GetDataBlockFromCache() local 1168 s = block_cache->Insert(block_cache_key, block_holder.get(), charge, in GetDataBlockFromCache() 1176 UpdateCacheInsertionMetrics(block_type, get_context, charge); in GetDataBlockFromCache() 1271 size_t charge = block_holder->ApproximateMemoryUsage(); in PutDataBlockToCache() local 1273 s = block_cache->Insert(block_cache_key, block_holder.get(), charge, in PutDataBlockToCache() 1281 UpdateCacheInsertionMetrics(block_type, get_context, charge); in PutDataBlockToCache()
|