Difference between data cache and static variables???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • inetmug

    Difference between data cache and static variables???

    Howdy All"

    Other then the automatic expiration stuff that you can set when using the
    data cache, what the the technical advantages of using the data cache versus
    static application variables?

    Testing has shown about the same behavior, am I missiing something??

    Thanks
    --
    Patrick
  • Scott Allen

    #2
    Re: Difference between data cache and static variables???

    The cache is thead-safe, while reading / writing a static reference
    variable is not (at least not without some additional work). Note that
    the objects in the cache may not be thread safe, but the cache
    collection itself is.

    That's one difference.

    --
    Scott


    On Sun, 5 Jun 2005 17:54:01 -0700, "inetmug"
    <inetmug@discus sions.microsoft .com> wrote:
    [color=blue]
    >Howdy All"
    >
    >Other then the automatic expiration stuff that you can set when using the
    >data cache, what the the technical advantages of using the data cache versus
    >static application variables?
    >
    >Testing has shown about the same behavior, am I missiing something??
    >
    > Thanks[/color]

    Comment

    • Kevin Spencer

      #3
      Re: Difference between data cache and static variables???

      By "data cache" are you referring the the Application Cache?

      --
      HTH,

      Kevin Spencer
      Microsoft MVP
      ..Net Developer
      Ambiguity has a certain quality to it.

      "inetmug" <inetmug@discus sions.microsoft .com> wrote in message
      news:25A07E7B-5A4F-4104-8630-41CBC86A484E@mi crosoft.com...[color=blue]
      > Howdy All"
      >
      > Other then the automatic expiration stuff that you can set when using the
      > data cache, what the the technical advantages of using the data cache
      > versus
      > static application variables?
      >
      > Testing has shown about the same behavior, am I missiing something??
      >
      > Thanks
      > --
      > Patrick[/color]


      Comment

      • inetmug

        #4
        Re: Difference between data cache and static variables???

        I have alwasys seen it as the data cache, I guess it would be the application
        cache. As Scott pointed out, it is sycnronized under the covers.

        Referencd like this...

        Cache["Channel"] = chnl;

        --
        Patrick


        "Kevin Spencer" wrote:
        [color=blue]
        > By "data cache" are you referring the the Application Cache?
        >
        > --
        > HTH,
        >
        > Kevin Spencer
        > Microsoft MVP
        > ..Net Developer
        > Ambiguity has a certain quality to it.
        >
        > "inetmug" <inetmug@discus sions.microsoft .com> wrote in message
        > news:25A07E7B-5A4F-4104-8630-41CBC86A484E@mi crosoft.com...[color=green]
        > > Howdy All"
        > >
        > > Other then the automatic expiration stuff that you can set when using the
        > > data cache, what the the technical advantages of using the data cache
        > > versus
        > > static application variables?
        > >
        > > Testing has shown about the same behavior, am I missiing something??
        > >
        > > Thanks
        > > --
        > > Patrick[/color]
        >
        >
        >[/color]

        Comment

        Working...