-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
50 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
cache/src/main/java/me/qwqdev/library/cache/factory/CacheServiceFactory.java
This file was deleted.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
cache/src/main/java/me/qwqdev/library/cache/factory/L1CacheServiceFactory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package me.qwqdev.library.cache.factory; | ||
|
||
import me.qwqdev.library.cache.service.L1CacheService; | ||
import me.qwqdev.library.cache.service.QueryCacheInterface; | ||
|
||
/** | ||
* A factory class for creating instances of L1CacheService. | ||
* | ||
* @since 2024-12-20 15:37 | ||
*/ | ||
public class L1CacheServiceFactory { | ||
/** | ||
* Creates a L1CacheService with the specified QueryCacheInterface implementation. | ||
* | ||
* @param queryCacheInterface the QueryCacheInterface implementation to be used by the L1CacheService | ||
* @param <K> the type of cache key | ||
* @param <V> the type of cache value | ||
* @return a new instance of L1CacheService | ||
*/ | ||
public static <K, V> L1CacheService<K, V> create(QueryCacheInterface<K, V> queryCacheInterface) { | ||
return new L1CacheService<>(queryCacheInterface); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters