怎么在redis里創(chuàng)建一個(gè)文件夾

小新
2876
2021-01-25 15:20:37
欄目: 云計(jì)算

怎么在redis里創(chuàng)建一個(gè)文件夾

在redis里創(chuàng)建一個(gè)文件夾的示例:

使用spring在redis的緩存中創(chuàng)建文件夾,代碼:

@Cacheable(value = "displayItem", cacheManager = "longLifeCacheManager")

public DisplayItem getDisplayItem(String displayItemCode) {

// Do a lot of things

}

@Cacheable(cacheManager = "mediumLifeCacheManager", value = "preferences:userPreferences", key = "#zenithName")

public UserPreferences getUserPreferencesByZenithName(String zenithName) {

// Do something

}

0