Redis in Django | learn to implete caching in Django | Advance Django

Поделиться
HTML-код
  • Опубликовано: 12 ноя 2024

Комментарии • 11

  • @mayankpatel5964
    @mayankpatel5964 2 года назад +2

    What's Wrong with this code
    Error : DefaultClient.set() missing 1 required positional argument: 'value'
    CODE :
    if 'service' in cache:
    # get results from cache
    services = cache.get('service')
    print("DATA COMING FROM CACHE")

    else:
    print("DATA COMING FROM DB")
    services = Services.objects.all()
    cache.set('service')

    • @mehedikhan7069
      @mehedikhan7069 2 года назад

      Maybe you forget to add value under the "service" key.
      cache.set('service',value)

    • @VickyMehta-xg2tc
      @VickyMehta-xg2tc 8 месяцев назад

      same error

  • @jafarraza-z7v
    @jafarraza-z7v 9 месяцев назад

    jango.core.cache.backends.base.InvalidCacheBackendError: I'm facing this problem , please help.How can i resolve it.

  • @amitpritammohapatra969
    @amitpritammohapatra969 2 года назад +1

    Error 10061 connecting to 127.0.0.1:6379. No connection could be made because the target machine actively refused it. showing this error

    • @amitpritammohapatra969
      @amitpritammohapatra969 2 года назад

      anyone with solutions??

    • @FuzzPiAndFacial
      @FuzzPiAndFacial 2 года назад

      @@amitpritammohapatra969 yes im sure you are using windows, configure the dummy redis,filesytem. Once in linux you will not get any error cause redis needs to be installed

    • @VickyMehta-xg2tc
      @VickyMehta-xg2tc 8 месяцев назад

      same error

  • @availtechnologies
    @availtechnologies Год назад

    Why do you give an english title, introduce your self in english then switch to a whole deferent language? I'm seriously curious.