-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from inu-appcenter/wonjeong#39-feat-redis
- Loading branch information
Showing
7 changed files
with
55 additions
and
7 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
19 changes: 19 additions & 0 deletions
19
src/main/java/server/inuappcenter/kr/data/redis/domain/ImageRedis.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,19 @@ | ||
package server.inuappcenter.kr.data.redis.domain; | ||
|
||
import lombok.Getter; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.redis.core.RedisHash; | ||
|
||
|
||
@Getter | ||
@RedisHash(value = "image") | ||
public class ImageRedis { | ||
@Id | ||
private Long id; | ||
private final byte[] imageData; | ||
|
||
public ImageRedis(Long id, byte[] imageData) { | ||
this.id = id; | ||
this.imageData = imageData; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...y/redis/BoardResponseRedisRepository.java → ...ository/BoardResponseRedisRepository.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
7 changes: 7 additions & 0 deletions
7
src/main/java/server/inuappcenter/kr/data/redis/repository/ImageRedisRepository.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,7 @@ | ||
package server.inuappcenter.kr.data.redis.repository; | ||
|
||
import org.springframework.data.repository.CrudRepository; | ||
import server.inuappcenter.kr.data.redis.domain.ImageRedis; | ||
|
||
public interface ImageRedisRepository extends CrudRepository<ImageRedis, Long> { | ||
} |
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
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