Symfony 5 Cache Tutorial

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 34

  • @das_evoli
    @das_evoli 2 роки тому +1

    Who would have thought that the concept of caches can be so easy. Thank you this helped me a lot.

    • @GaryClarkeTech
      @GaryClarkeTech  2 роки тому

      You're welcome. Hope you get to use the information.

  • @luizneri
    @luizneri 2 роки тому

    I was looking for config and container components, but I'm glad I stumped here. Amazing video!

  • @bakaleisanich
    @bakaleisanich 3 роки тому

    Thanks for your lessons. Did not find a video about creating a simple api

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      I've not done a creating an API video yet because it will be hard to do in just a couple of vids...so I'll most likely do a small series when I do it. I've not forgotten!

  • @AnDre-ox6xl
    @AnDre-ox6xl 9 місяців тому

    Thank you very much for this tutorial!
    Straight to the point.

    • @GaryClarkeTech
      @GaryClarkeTech  9 місяців тому

      You're welcome..thanks for watching!

  • @vitiok78
    @vitiok78 3 роки тому

    Great tutorial! Symfony is awesome and we absolutely need more tutorials like this on UA-cam

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      Thanks Victor. I appreciate your support 👍

  • @janhazincak7980
    @janhazincak7980 2 роки тому

    Great tutorial. Many thanks Gary.

  • @pawecyrklaf4729
    @pawecyrklaf4729 3 роки тому +2

    Great tutorial, I just need to implement some cache system in Symfony, so your tutorial will come in handy :D

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      Awesome..glad it helped, Paweł. Check out the most recommended way of using it in a Symfony project in the part 2 video.

  • @tracid2008
    @tracid2008 3 роки тому +1

    Great work! I would love to see a tutorial for the messenger component.

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +2

      Thanks Daniel 👍I've put messenger on the list.

    • @jasongoossens
      @jasongoossens 3 роки тому +1

      @@GaryClarkeTech May I ask what else is on the list? 😊

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      @@jasongoossens It's become quite a big list! I've got REST API and more OOP stuff coming up

    • @jasongoossens
      @jasongoossens 3 роки тому

      @@GaryClarkeTech Sounds interesting! I'm busy learning the inner workings of Symfony and in addition to the documentation, videos like yours are a real help!

  • @ElGovanni
    @ElGovanni 3 роки тому

    Hi Gary, great job but can I ask if You have any knowledge about deployment?
    I'd love to see if im correct what I'm doing with CD (for example with symfony, github actions and some VM).

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      I have some deployment knowledge but, as far as CD + github actions is concerned, there are other guys on UA-cam who are way more knowledgeable than me. It's not really my area of expertise.

  • @mohamedzaki3780
    @mohamedzaki3780 3 роки тому +1

    For enabling memcached or redis adapters

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      You can watch redis adapter in part 2:
      ua-cam.com/video/Wj5h3XOPyPE/v-deo.html

  • @sindro88
    @sindro88 3 роки тому

    Thank for your fantastic lessons. Can you do videos about implementation of Hexagonal Architecture in Symfony ?

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      Thanks Alessandro 👍
      Hexagonal Architecture is something I'm hearing more and more but I know little about it. When I do decide to learn more about it, I'll defo share what I learn!

    • @sindro88
      @sindro88 3 роки тому +1

      @@GaryClarkeTech thank you so much

  • @MrGabishDe
    @MrGabishDe 3 роки тому

    Hey Gary. Can you please make a video about symfony with docker ? Or are you only using symfony with symfonly cli ?

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      I made this one a few months ago:
      ua-cam.com/video/ITOnpzkzlYM/v-deo.html
      But a lot of the time in development I just use the Symfony - Docker integration from the docs with PHP on my machine..not in a container. I demo that with Redis in part 2 of this lesson.

  • @parijke
    @parijke 3 роки тому

    Hi Gary, again nice tut. I wondered why you inject the EntityManagerInterface instead of the StockRepository. Is it arbitrairy or do you do this with a special reason?

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому +1

      Cheers Paul...it's something I've just not thought of doing. Injecting EM is just a habit that I do without really thinking about doing it any other way. Might give it a go in the future!

  • @anstapol
    @anstapol 3 роки тому

    Hey Gary great video! Thank you for your work.
    About the cache component, how do you deal with unit tests that involves components that use cache?
    In my case it's a repository with heavy query I'm caching the result but when running test I can't pass them because the cache is somehow hitting but empty. So I don't have any results...

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      Thanks Anton.
      It sounds like you could possibly be checking a different cache pool in your test than the one you are using in your code.
      If I get the chance, I'll make a recording on tests which hit the cache.

    • @anstapol
      @anstapol 3 роки тому +1

      @@GaryClarkeTech Thank you very much for your answer. I was wrong the problem is with the fixtures not the cache. I used sqlite like you did in another tutorial and it's not importing all the fixtures and exits without an error, then I switched to mysql and it throws an error even that for dev environment it's working fine.

    • @GaryClarkeTech
      @GaryClarkeTech  3 роки тому

      @@anstapol Cache can be quite fiddly for tests. There can sometimes be things left in there even though you clear the cache at the end of each test. I usually add the tests that hit a cache to a group and exclude them from running unless I specifically require them.

  • @return_undefine
    @return_undefine Рік тому

    Not beginner friendly. Don't even understand anything