Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
blogi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jan.koester
blogi
Commits
853c2d15
Commit
853c2d15
authored
5 months ago
by
jan.koester
Browse files
Options
Downloads
Patches
Plain Diff
fixes
parent
6d545a99
No related branches found
Branches containing commit
Tags
0.8.8
0.8.9
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/media/redis.cpp
+7
-3
7 additions, 3 deletions
plugins/media/redis.cpp
src/conf.cpp
+1
-0
1 addition, 0 deletions
src/conf.cpp
with
8 additions
and
3 deletions
plugins/media/redis.cpp
+
7
−
3
View file @
853c2d15
...
...
@@ -51,8 +51,10 @@ blogi::RedisStore::RedisStore(const char *host,int port,const char *password,int
if
(
password
){
_RedisPassword
=
password
;
redisCommand
(
_RedisCTX
[
i
],
"AUTH %s"
,
password
);
redisReply
*
rep
=
(
redisReply
*
)
redisCommand
(
_RedisCTX
[
i
],
"AUTH %s"
,
password
);
freeReplyObject
(
rep
);
}
}
}
...
...
@@ -88,8 +90,10 @@ size_t blogi::RedisStore::getSize(int tid,const char* key){
void
blogi
::
RedisStore
::
save
(
int
tid
,
const
char
*
key
,
const
char
*
data
,
size_t
datalen
){
redisCommand
(
_RedisCTX
[
tid
],
"SET %s %b"
,
key
,
data
,
datalen
);
redisCommand
(
_RedisCTX
[
tid
],
"save"
);
redisReply
*
rep
=
(
redisReply
*
)
redisCommand
(
_RedisCTX
[
tid
],
"SET %s %b"
,
key
,
data
,
datalen
);
freeReplyObject
(
rep
);
rep
=
(
redisReply
*
)
redisCommand
(
_RedisCTX
[
tid
],
"save"
);
freeReplyObject
(
rep
);
}
void
blogi
::
RedisStore
::
load
(
int
tid
,
libhttppp
::
HttpRequest
*
req
,
const
char
*
key
,
std
::
vector
<
char
>
&
data
,
size_t
pos
,
size_t
blocksize
)
{
...
...
This diff is collapsed.
Click to expand it.
src/conf.cpp
+
1
−
0
View file @
853c2d15
...
...
@@ -110,6 +110,7 @@ blogi::Config::Config(const char *path) : confplus::Config(path){
}
blogi
::
Config
::~
Config
(){
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment