#pragma once
#include <stdint.h>
+
#include <memory>
#include <string>
+
#include "rocksdb/cache.h"
#include "rocksdb/env.h"
#include "rocksdb/slice.h"
// can help users tune their current block cache size, and determine how
// efficient they are using the memory.
//
-// Since GetSimCapacity() returns the capacity for simulutation, it differs from
+// Since GetSimCapacity() returns the capacity for simulation, it differs from
// actual memory usage, which can be estimated as:
// sim_capacity * entry_size / (entry_size + block_size),
// where 76 <= entry_size <= 104,
// sets the maximum configured capacity of the simcache. When the new
// capacity is less than the old capacity and the existing usage is
// greater than new capacity, the implementation will purge old entries
- // to fit new capapicty.
+ // to fit new capacity.
virtual void SetSimCapacity(size_t capacity) = 0;
// returns the lookup times of simcache