diff --git a/include/libs/lru/lru.h b/include/libs/cache/cache.h
similarity index 91%
rename from include/libs/lru/lru.h
rename to include/libs/cache/cache.h
index c82e8ed7468a1a6107c893deb1d0ad43c7e13a4e..6a2587ee9674668861d050ee734987125674e643 100644
--- a/include/libs/lru/lru.h
+++ b/include/libs/cache/cache.h
@@ -13,8 +13,8 @@
* along with this program. If not, see .
*/
-#ifndef _TD_LRU_H_
-#define _TD_LRU_H_
+#ifndef _TD_CACHE_H_
+#define _TD_CACHE_H_
#ifdef __cplusplus
extern "C" {
@@ -24,4 +24,4 @@ extern "C" {
}
#endif
-#endif /*_TD_LRU_H_*/
\ No newline at end of file
+#endif /*_TD_CACHE_H_*/
\ No newline at end of file
diff --git a/source/libs/CMakeLists.txt b/source/libs/CMakeLists.txt
index eeaac61e21635aa132a72e461acf85363059ce85..007bb1e967a930d994f973b313aeb8f8cc9574be 100644
--- a/source/libs/CMakeLists.txt
+++ b/source/libs/CMakeLists.txt
@@ -5,7 +5,7 @@ add_subdirectory(index)
add_subdirectory(wal)
add_subdirectory(parser)
add_subdirectory(scheduler)
-add_subdirectory(lru)
+add_subdirectory(cache)
add_subdirectory(catalog)
add_subdirectory(executor)
add_subdirectory(planner)
diff --git a/source/libs/cache/CMakeLists.txt b/source/libs/cache/CMakeLists.txt
new file mode 100644
index 0000000000000000000000000000000000000000..5ba59ef160706b16d28e3ad17b1ccc429b806095
--- /dev/null
+++ b/source/libs/cache/CMakeLists.txt
@@ -0,0 +1,7 @@
+aux_source_directory(src CACHE_SRC)
+add_library(cache ${CACHE_SRC})
+target_include_directories(
+ cache
+ PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/cache"
+ PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
+)
\ No newline at end of file
diff --git a/source/libs/lru/inc/lruInt.h b/source/libs/cache/inc/cacheDef.h
similarity index 90%
rename from source/libs/lru/inc/lruInt.h
rename to source/libs/cache/inc/cacheDef.h
index e0da680104e898dc20408071af4f5fc2cb3ef29a..2e0dbfcdb6065ee7cdb15c479e7755dee9d4a77d 100644
--- a/source/libs/lru/inc/lruInt.h
+++ b/source/libs/cache/inc/cacheDef.h
@@ -13,8 +13,8 @@
* along with this program. If not, see .
*/
-#ifndef _TD_LRU_INT_H_
-#define _TD_LRU_INT_H_
+#ifndef _TD_CACHE_DEF_H_
+#define _TD_CACHE_DEF_H_
#ifdef __cplusplus
extern "C" {
@@ -24,4 +24,4 @@ extern "C" {
}
#endif
-#endif /*_TD_LRU_INT_H_*/
\ No newline at end of file
+#endif /*_TD_CACHE_DEF_H_*/
\ No newline at end of file
diff --git a/source/libs/lru/src/lru.c b/source/libs/cache/src/cache.c
similarity index 100%
rename from source/libs/lru/src/lru.c
rename to source/libs/cache/src/cache.c
diff --git a/source/libs/lru/test/lruTests.cpp b/source/libs/cache/test/cacheTests.cpp
similarity index 100%
rename from source/libs/lru/test/lruTests.cpp
rename to source/libs/cache/test/cacheTests.cpp
diff --git a/source/libs/lru/CMakeLists.txt b/source/libs/lru/CMakeLists.txt
deleted file mode 100644
index b65615dbbfcee28fd6da898dd6c1c69d6a177e18..0000000000000000000000000000000000000000
--- a/source/libs/lru/CMakeLists.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-aux_source_directory(src LRU_SRC)
-add_library(lru ${LRU_SRC})
-target_include_directories(
- lru
- PUBLIC "${CMAKE_SOURCE_DIR}/include/libs/lru"
- PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
-)
\ No newline at end of file