2.redis.3.2 Download, install, configure, use-2

Source: Internet
Author: User

The previous article briefly introduced the download, installation, testing, now directly used, see the results

The Redis service that is used is the simple service that was built on a temporary basis, note that it is easy to say, because it is just a single point of "Toys";

Temporarily at the time of the project login simulation, the cache object used here is a custom Redis several methods, wherein the parameters, Func<>, this all understand, so sweet grammar sugar, the use of the use of, their own benefit,

Only look at the red box is enough, other neglect; Here is a simulation query for a data, first query from the cache, if the query is not available, use await () = = expression from the database, and then insert into the cache again

Implementation method:

Other methods, such as updating, adding, deleting, and similar implementations, result in the result of an image being persisted into the redis environment.

Actually write these things do not make sense, but for some enterprises, they always feel very good appearance, always feel, others this can not, in fact, do not want to talk to you, do not want to show you

The use of these things is not difficult to say, simple is not so simple, the only difference is, 1, whether dare to do, 2, whether in the face of problems can be flexible, timely resolution, 3, whether there is a careful look at the official API,

Does not mean that learning does not, everyone's learning ability, absorptive capacity is not the same. Moreover, a lot of things are more rigid, check data, test several times can come out of things.

2.redis.3.2 Download, install, configure, use-2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.