Comments (2)
Hi @redboltz, refer to the Null section in the docs, namely, replace response<std::string> foo;
with response<std::optional<std::string>> foo;
from redis.
@criatura2 , thank you for the prompt response. It works fine!
In my script case, the value of optional is not important.
So I use the following typealias for the no-return value script execution.
using nil_t = std::optional<int>; // int is an example type of small size and no include dependency
from redis.
Related Issues (20)
- Pass socket close errors to the caller HOT 1
- Understand why we have to call connection.cancel in the TLS test
- MGET with invalid key unexpectedly reports error HOT 4
- Remove resp3::read and resp3::async_read
- Enable reading server pushes in batches
- geoadd error HOT 1
- Boost docs formatting problems
- Docs styles minor tweaks
- Add ability to check if initial connection to server succeeded HOT 2
- Support containers in CI HOT 1
- Using AWS cluster - Trouble writing values to it HOT 5
- No way to specify CA/client certificate for SSL connections. HOT 10
- Where to reinstate SSL verification spec? HOT 4
- Redis client fails to process all the requests. HOT 30
- How to use cmake or link an example? HOT 5
- Windows Visual Studio 2022 C++17/C++20 failed compilation of src.hpp. HOT 14
- Are distinct connection objects thread safe ? HOT 24
- Question about boost::redis::request::config HOT 17
- second call to async_exec hangs and never returns HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redis.