-
Notifications
You must be signed in to change notification settings - Fork 79
adding sentinel timeout parameters #42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hurdad
wants to merge
10
commits into
luca3m:master
Choose a base branch
from
hurdad:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d168a60
adding sentinel connection timeout parameter
hurdad c5d31fa
update connection::create[Timeout] call based on timeout value
hurdad d6a3aa6
adding to_sec timeout parameter
hurdad 8fcf28f
update example
hurdad cc269db
formatting : tab to space
hurdad 030e78c
remove bad char
hurdad 7c20251
fix CMakeLists.txt
hurdad d41957b
adding rpm spec file
hurdad 0d311d8
update timeout function names
invalid-email-address f323cae
update example
hurdad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,55 @@ | ||
| Name: redis3m | ||
| Version: 2.0 | ||
| Release: 1%{?dist} | ||
| Summary: A C++ Redis client | ||
| Group: System Environment/Libraries | ||
| License: Apache 2.0 | ||
| URL: https://github.com/luca3m/redis3m | ||
| Source: redis3m-master.tar.gz | ||
| BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
| Packager: Alexander Hurd <hurdad@gmail.com> | ||
|
|
||
| %description | ||
| A C++ Redis client | ||
|
|
||
| %package devel | ||
| Summary: Development files for %{name} | ||
| Group: Development/Libraries | ||
|
|
||
| %description devel | ||
| The %{name}-devel package contains libraries and header files for | ||
| developing applications that use %{name}. | ||
|
|
||
| %prep | ||
| %setup -q -n redis3m-master | ||
|
|
||
| %build | ||
| cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 . | ||
| make %{?_smp_mflags} | ||
|
|
||
| %install | ||
| make install DESTDIR=%{buildroot} | ||
|
|
||
| %post | ||
| ldconfig | ||
|
|
||
| %postun | ||
| ldconfig | ||
|
|
||
| %clean | ||
| %{__rm} -rf %{buildroot} | ||
|
|
||
| %files | ||
| %defattr(-,root,root,-) | ||
| %{_datadir}/ | ||
| %{_libdir}/*.so.* | ||
|
|
||
| %files devel | ||
| %defattr(-,root,root,-) | ||
| %{_includedir}/redis3m | ||
| %{_libdir}/*.so | ||
| %{_libdir}/pkgconfig/redis3m.pc | ||
|
|
||
| %changelog | ||
| * Mon Apr 4 2016 Alexander Hurd <hurdad@gmail.com> 1.0.1-1 | ||
| - Initial specfile writeup. |
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency with the rest of the project, I'd like
create_timeoutinstead ofcreateTimeout. So underscore syntax. Is it a problem for you?Also, why not using
std::chronotime intervals instead ofstruct timeval? Could it be more C++11 friendly?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I can change to create_timeout.
I used struct timeval because that what is used by hiredis redisConnectWithTimeout
struct timeval timeout = { 1, 500000 }; // 1.5 seconds c = redisConnectWithTimeout(hostname, port, timeout);